GET /api/userAuth/me
Returns the full profile of the currently signed-in user. The response never includes the password field.
Required Headers
Response Fields
string
MongoDB ObjectId of the user.
string
The user’s email address.
string
The user’s display name.
any
All other fields from your
users collection schema, except password.Code Examples
Success Response
Errors
GET /api/userAuth/public/:username
Returns a public-safe view of a user’s profile. No authentication is required.
This endpoint never returns sensitive fields such as
password or email.
Only fields considered safe for public display are included.Path Parameters
string
required
The username of the user whose public profile you want to retrieve.
Required Header
x-api-key: your pk_live_… key.
