Grants
Patient data-sharing grants. Doctors and clinic admins invite patients; patients accept or revoke. Once active, the grantee can read the patient's health data within the grant's permission set.
Accept a grant request (patient)POSTDecline a pending grant request (patient)POSTInvite a patient to share dataPOSTList active patient grants (clinical view)GETList incoming grant requests (patient view)GETMark a heart event as reviewed (clinical)POSTRead patient check-ins (clinical)GETRead patient heart-monitoring events (clinical)GETRead patient symptoms (clinical)GETRead patient wearable sync status (clinical)GETRevoke a grant (patient)POSTWho accessed my data (patient)GET
Upload an on-device ECG recording POST
Stores an ECG recorded on a watch (Apple Watch via HealthKit; Fitbit / Pixel Watch ECGs arrive through `/google-health/sync` instead) with its waveform and the device's own classification, attributed to its source. Idempotent on `source_record_id`, so the app can safely re-sync. Returns the heart event (existing one on a repeat upload).
Accept a grant request (patient) POST
Accept a pending grant, making the requesting clinician's access active. Available to all authenticated users (any role can act as a patient).