List incoming grant requests (patient view)
Returns all grant requests directed at the current user as a **patient**. Includes both `pending` (awaiting acceptance) and `active` grants. Available to all authenticated users — any role can receive grant requests because doctors and clinic staff can also be patients.
Authorization
HTTPBearer In: header
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/grants/incoming"null{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}Invite a patient to share data POST
Create a **pending** grant requesting access to a patient's health data. The patient must accept the grant before any data becomes accessible. Requires role: `doctor`, `clinic_admin`, or `admin`. `clinic_staff` cannot initiate grants — a doctor or admin must invite on their behalf. Permissions can be any subset of: `check_ins`, `medications`, `symptoms`, `wearable_data`, `heart_data`, `ai_insights`, or `full`.
List active patient grants (clinical view) GET
Returns all grants where the current user is the **grantee** — i.e., patients who have shared their data with this user. Requires role: `doctor`, `clinic_admin`, `clinic_staff`, or `admin`.