API reference
SunCharts Connect API
The hosted partner API for building your own branded app on SunCharts. Start in the sandbox, which serves simulated clinic data; production credentials are issued after review.
The live, interactive reference stays at api.suncharts.app/docs ↗. This page is a fast static copy of the same document.
Base URLs
-
https://sandbox-api.suncharts.appSandbox (simulated data) -
https://api.suncharts.appProduction
Scopes
| Scope | Allows |
|---|---|
apps.manage |
Change your app's auth settings |
clinical.read |
Clinical reads (with a user token) |
clinical.write |
Clinical writes (production only) |
hosted_ehr.manage |
Read and schedule approved hosted EHR releases |
partner.read |
Partner profile, branding, app identity, auth settings (read) |
tenants.read |
List your clinics |
tenants.write |
Create clinics |
users.passthrough |
Relay end-user auth for your users |
How to obtain a token is covered in Authentication.
Endpoints
Partner account and clinics 8
-
GET
/api/v1/partner/auth-settingsYour app's white-label auth settings -
PATCH
/api/v1/partner/auth-settingsUpdate your app's auth settings (omitted = unchanged, ""/[] = clear) -
GET
/api/v1/partner/mePartner, branding and app identity (scope partner.read) -
GET
/api/v1/partner/tenantsPartner-scoped tenants (clinics) -
POST
/api/v1/partner/tenantsCreate a partner-scoped tenant -
POST
/api/v1/partner/tenants/{tid}/invitesInvite a user to one of your tenants -
GET
/api/v1/partner/tenants/{tid}/usersUsers of one of your tenants -
POST
/api/v1/partner/tenants/{tid}/users/{uid}/deactivateDeactivate a tenant user
End-user sign-in 20
-
POST
/api/v1/auth/device/approveApprove or deny a device code for your account -
POST
/api/v1/auth/device/claimType the code shown on a signed-in device -
GET
/api/v1/auth/device/lookupDescribe a pending device code before approving it -
GET
/api/v1/auth/device/offerCurrent offer and any claiming device -
POST
/api/v1/auth/device/offerShow a code on this signed-in device -
POST
/api/v1/auth/device/startStart a device sign-in (show a code + QR) -
POST
/api/v1/auth/device/tokenPoll a device sign-in -
POST
/api/v1/auth/device/uv/startStart passkey user-verification for a full-access approve -
POST
/api/v1/auth/loginEnd-user sign-in (passthrough from the partner backend) -
POST
/api/v1/auth/login/selectFinish a multi-clinic sign-in -
POST
/api/v1/auth/logoutRevoke the current session -
POST
/api/v1/auth/magic/startEmail a single-use sign-in link + 6-digit code -
POST
/api/v1/auth/magic/verifyRedeem a magic link or code (same device only) -
POST
/api/v1/auth/passkey/login/finishFinish passkey sign-in → user tokens -
POST
/api/v1/auth/passkey/login/startBegin passkey sign-in (WebAuthn options) -
POST
/api/v1/auth/passkey/register/finishFinish passkey registration -
POST
/api/v1/auth/passkey/register/startBegin passkey registration (user token required) -
POST
/api/v1/auth/refreshRotate the refresh token -
GET
/api/v1/meCurrent user, tenant, role -
POST
/api/v1/signup/startPasswordless sign-up: email + clinic name → link/code
Patients 3
Notes 2
Vitals 2
Problems 2
Messages 2
Notifications 11
-
GET
/api/v1/notificationsMy notifications -
GET
/api/v1/notifications/preferencesNotification preferences -
PUT
/api/v1/notifications/preferencesUpdate notification preferences -
POST
/api/v1/notifications/read-allMark all read -
GET
/api/v1/notifications/{id}Open a notification -
POST
/api/v1/notifications/{id}/readMark read -
GET
/api/v1/push/configPush configuration -
GET
/api/v1/push/devicesList my push devices -
POST
/api/v1/push/devicesRegister a push token -
POST
/api/v1/push/devices/unregisterUnregister a push token -
DELETE
/api/v1/push/devices/{id}Remove a push device
Patient app 39
-
GET
/api/v1/patient-link-requestsPending patient link requests -
POST
/api/v1/patient-link-requests/{id}/approveApprove a request (must supply ehr_puuid) -
POST
/api/v1/patient-link-requests/{id}/denyDeny a patient link request -
GET
/api/v1/patient/appointmentsOwn upcoming appointments -
POST
/api/v1/patient/appointmentsRequest an appointment if the EHR allows -
POST
/api/v1/patient/appointments/{id}/cancelCancel own appointment if the EHR allows -
POST
/api/v1/patient/auth/logoutRevoke patient session -
POST
/api/v1/patient/auth/magic/startStart patient email sign-in (always 202) -
POST
/api/v1/patient/auth/magic/verifyVerify patient email link or code -
POST
/api/v1/patient/auth/passkey/login/finishFinish patient passkey sign-in -
POST
/api/v1/patient/auth/passkey/login/startStart patient passkey sign-in -
POST
/api/v1/patient/auth/passkey/register/finishFinish patient passkey enrollment -
POST
/api/v1/patient/auth/passkey/register/startStart patient passkey enrollment -
GET
/api/v1/patient/auth/passkeysList patient passkeys -
DELETE
/api/v1/patient/auth/passkeys/{id}Remove a patient passkey -
POST
/api/v1/patient/auth/refreshRotate patient refresh token -
POST
/api/v1/patient/auth/selectFinish multi-clinic patient sign-in -
GET
/api/v1/patient/clinicsVerified clinic memberships -
POST
/api/v1/patient/clinicsSwitch selected clinic -
POST
/api/v1/patient/clinics/acceptAccept a clinic invite code -
POST
/api/v1/patient/clinics/requestRequest a clinic link (clinic must approve) -
POST
/api/v1/patient/deleteDelete the patient account (no password) -
POST
/api/v1/patient/delete/email-codeEmail a deletion confirmation code -
POST
/api/v1/patient/delete/passkey/startStart passkey step-up for deletion -
GET
/api/v1/patient/deletionPasswordless account-deletion preflight -
GET
/api/v1/patient/exportExport account and stored Apple Health samples -
POST
/api/v1/patient/health/batchIngest Apple Health samples (deduped) -
GET
/api/v1/patient/health/sync-stateHealthKit sync anchors -
GET
/api/v1/patient/meCurrent patient account and clinics -
GET
/api/v1/patient/messagesSecure messages with the selected clinic -
POST
/api/v1/patient/messagesSend a message to the selected clinic -
GET
/api/v1/patient/profilePatient profile -
POST
/api/v1/patient/profileUpdate display name -
GET
/api/v1/patient/recordsOwn problems, meds, allergies, immunizations, vitals, documents -
GET
/api/v1/patients/{puuid}/apple-healthPatient-reported / Apple Health for this chart -
POST
/api/v1/patients/{puuid}/portal-inviteInvite a patient to this chart -
GET
/api/v1/patients/{puuid}/portal-statusPortal link status for a chart -
GET
/api/v1/tenant/patient-portal/join-codeClinic join code (identifies tenant only) -
POST
/api/v1/tenant/patient-portal/join-codeRotate clinic join code
No endpoint matches that filter.
What is left out
Operator-only release scheduling and an internal push self-test are not listed. The downloadable document is the same file served at api.suncharts.app/openapi.json.