Avycenna

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.

GET
/api/v1/auth/me

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/auth/me"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}