Documentation Index
Fetch the complete documentation index at: https://docs.ub.bitbros.in/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/userAuth/me
Returns the full profile of the currently signed-in user. The response never includes the password field.
Required Headers
| Header | Value |
|---|---|
x-api-key | Your pk_live_… key |
Authorization | Bearer <accessToken> |
Response Fields
MongoDB ObjectId of the user.
The user’s email address.
The user’s display name.
All other fields from your
users collection schema, except password.Code Examples
Success Response
Errors
| Status | Cause |
|---|---|
401 Unauthorized | Missing or expired Authorization token |
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
The username of the user whose public profile you want to retrieve.
Required Header
x-api-key: your pk_live_… key.
Code Example
Success Response
Errors
| Status | Cause |
|---|---|
404 Not Found | No user found with that username |
