Get User Profile
Authentication
Get User Profile
Retrieve the authenticated user’s profile information
GET
Get User Profile
Overview
Retrieves the profile information for the currently authenticated user. This endpoint requires a valid JWT token and returns the user’s MongoDB profile data.Authentication
This endpoint requires authentication. Include a valid access token in the Authorization header.Request
No request body or parameters required. The user is identified from the JWT token.cURL
JavaScript
Python
Response
The user’s profile information
Success Response
Error Responses
Error message describing what went wrong
401 Unauthorized
Returned when the access token is missing, invalid, or expired.404 Not Found
Returned when the user record doesn’t exist in MongoDB (rare case).500 Internal Server Error
Returned when a server error occurs.Notes
The profile endpoint uses the JWT token to identify the user, so you don’t need to pass a user ID. Each user can only access their own profile.
This endpoint returns data from MongoDB, not Supabase. It includes the
supabaseId field which links the MongoDB record to the Supabase authentication record.