Complete onboarding (self-service role selection)
One-time, self-service equivalent of `/users/role` for a user's own account. Lets a newly-registered user pick their role (patient, doctor, clinic_staff, or clinic_admin) once, right after sign-up. `admin` and `researcher` can't be self-assigned here — an existing admin must grant those via `/users/role`. Fails with 409 if this account has already completed onboarding; use `/users/role` (admin-only) to change role after that point.
Authorization
HTTPBearer In: header
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Self-service role selection, one-time only (see /users/onboarding).
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/users/onboarding" \ -H "Content-Type: application/json" \ -d '{ "role": "patient" }'null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Users
Current-user profile, role assignment (admin only), and profile updates (timezone, locale, DOB, clinical specialty).
Delete my account and data DELETE
Permanently deletes your account and all your data, after revoking Avycenna's access to connected device accounts (Google Health, Withings). Clinics lose access immediately. Requires `confirm=true`. Cannot be undone — download your data first if you want a copy.