Rotate token pair
Exchange a valid refresh token for a new `access_token` + `refresh_token` pair. The old refresh token is **immediately revoked**. Clients should store the new refresh token from the response. Call this automatically whenever a request returns HTTP 401.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/refresh" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'{ "access_token": "string", "refresh_token": "string", "token_type": "bearer", "user": { "id": "string", "name": "string", "email": "string", "image": "string", "role": "patient" }}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Available sign-in methods GET
Which web sign-in providers are configured, so the sign-in page only offers working options. Email codes are always available.
Clinic
Clinician workflow on top of patient grants: the attention-first worklist, a patient's timeline and Event Capsules, capsule review, ECG waveforms, medications and clinical notes. Every read is gated by the grant's permissions and shared date window, and audited.