Current user
Return the authenticated user's core fields and full profile, including `role`. Use this immediately after sign-in to determine which UI to display: - `patient` → patient mobile app - `doctor` → doctor dashboard (web) + patient app (mobile for own data) - `clinic_staff` → doctor dashboard (read-only) + patient app - `clinic_admin` → doctor dashboard (full) + patient app - `admin` → admin panel Note: doctors, clinic staff, and clinic admins can all use the patient mobile app to track their **own** health data.
Authorization
HTTPBearer In: header
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/auth/me"null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Sign out POST
Revoke the refresh token, ending the session. Clients should also delete the locally stored `access_token` and `refresh_token` after calling this endpoint.
Apple Sign In — web redirect GET
Redirect the browser to Apple's sign-in page. After approval, Apple posts back to `/oauth/apple/callback` which issues tokens and redirects to the app.