#
Pending patient link requests
GET
/api/v1/patient-link-requests
Access
End-user access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient-link-requests" -H "Authorization: Bearer $TOKEN"
#
Approve a request (must supply ehr_puuid)
POST
/api/v1/patient-link-requests/{id}/approve
Access
End-user access token
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string |
|
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient-link-requests/{id}/approve" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Deny a patient link request
POST
/api/v1/patient-link-requests/{id}/deny
Access
End-user access token
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string |
|
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient-link-requests/{id}/deny" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Own upcoming appointments
GET
/api/v1/patient/appointments
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/appointments" -H "Authorization: Bearer $TOKEN"
#
Request an appointment if the EHR allows
POST
/api/v1/patient/appointments
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/appointments" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Cancel own appointment if the EHR allows
POST
/api/v1/patient/appointments/{id}/cancel
Access
Patient access token
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string |
|
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/appointments/{id}/cancel" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Revoke patient session
POST
/api/v1/patient/auth/logout
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/logout" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Start patient email sign-in (always 202)
POST
/api/v1/patient/auth/magic/start
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/magic/start" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Verify patient email link or code
POST
/api/v1/patient/auth/magic/verify
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/magic/verify" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Finish patient passkey sign-in
POST
/api/v1/patient/auth/passkey/login/finish
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkey/login/finish" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Start patient passkey sign-in
POST
/api/v1/patient/auth/passkey/login/start
Access
No credential
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkey/login/start" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Finish patient passkey enrollment
POST
/api/v1/patient/auth/passkey/register/finish
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkey/register/finish" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Start patient passkey enrollment
POST
/api/v1/patient/auth/passkey/register/start
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkey/register/start" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
List patient passkeys
GET
/api/v1/patient/auth/passkeys
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkeys" -H "Authorization: Bearer $TOKEN"
#
Remove a patient passkey
DELETE
/api/v1/patient/auth/passkeys/{id}
Access
Patient access token
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string |
|
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X DELETE "https://sandbox-api.suncharts.app/api/v1/patient/auth/passkeys/{id}" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Rotate patient refresh token
POST
/api/v1/patient/auth/refresh
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/refresh" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Finish multi-clinic patient sign-in
POST
/api/v1/patient/auth/select
Access
No credential
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/auth/select" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Verified clinic memberships
GET
/api/v1/patient/clinics
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/clinics" -H "Authorization: Bearer $TOKEN"
#
Switch selected clinic
POST
/api/v1/patient/clinics
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/clinics" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Accept a clinic invite code
POST
/api/v1/patient/clinics/accept
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/clinics/accept" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Request a clinic link (clinic must approve)
POST
/api/v1/patient/clinics/request
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/clinics/request" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Delete the patient account (no password)
POST
/api/v1/patient/delete
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/delete" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Email a deletion confirmation code
POST
/api/v1/patient/delete/email-code
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/delete/email-code" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Start passkey step-up for deletion
POST
/api/v1/patient/delete/passkey/start
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/delete/passkey/start" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Passwordless account-deletion preflight
GET
/api/v1/patient/deletion
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/deletion" -H "Authorization: Bearer $TOKEN"
#
Export account and stored Apple Health samples
GET
/api/v1/patient/export
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/export" -H "Authorization: Bearer $TOKEN"
#
Ingest Apple Health samples (deduped)
POST
/api/v1/patient/health/batch
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/health/batch" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
HealthKit sync anchors
GET
/api/v1/patient/health/sync-state
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/health/sync-state" -H "Authorization: Bearer $TOKEN"
#
Current patient account and clinics
GET
/api/v1/patient/me
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/me" -H "Authorization: Bearer $TOKEN"
#
Secure messages with the selected clinic
GET
/api/v1/patient/messages
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/messages" -H "Authorization: Bearer $TOKEN"
#
Send a message to the selected clinic
POST
/api/v1/patient/messages
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/messages" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Patient profile
GET
/api/v1/patient/profile
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/profile" -H "Authorization: Bearer $TOKEN"
#
Update display name
POST
/api/v1/patient/profile
Access
Patient access token
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patient/profile" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Own problems, meds, allergies, immunizations, vitals, documents
GET
/api/v1/patient/records
Access
Patient access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patient/records" -H "Authorization: Bearer $TOKEN"
#
Patient-reported / Apple Health for this chart
GET
/api/v1/patients/{puuid}/apple-health
Access
End-user access token
Parameters
| Name |
In |
Type |
Details |
puuid
required
|
path |
string |
|
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patients/{puuid}/apple-health" -H "Authorization: Bearer $TOKEN"
#
Invite a patient to this chart
POST
/api/v1/patients/{puuid}/portal-invite
Access
End-user access token
Parameters
| Name |
In |
Type |
Details |
puuid
required
|
path |
string |
|
Request body
application/json · required
Body: object
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/patients/{puuid}/portal-invite" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
#
Portal link status for a chart
GET
/api/v1/patients/{puuid}/portal-status
Access
End-user access token
Parameters
| Name |
In |
Type |
Details |
puuid
required
|
path |
string |
|
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/patients/{puuid}/portal-status" -H "Authorization: Bearer $TOKEN"
#
Clinic join code (identifies tenant only)
GET
/api/v1/tenant/patient-portal/join-code
Access
End-user access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl "https://sandbox-api.suncharts.app/api/v1/tenant/patient-portal/join-code" -H "Authorization: Bearer $TOKEN"
#
Rotate clinic join code
POST
/api/v1/tenant/patient-portal/join-code
Access
End-user access token
Responses
-
200
OK
application/json
-
Body: object
-
default
Error (neutral code)
application/json
-
Fields Error · 5
| Field |
Type |
Details |
error
required
|
string |
Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status.
|
connection_id
|
string |
EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`)
|
link
|
string |
How to link the connection (on `openemr_link_required` / `openemr_relink_required`)
|
message
|
string |
Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code)
|
retry_after
|
integer |
Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
|
Example call
curl -X POST "https://sandbox-api.suncharts.app/api/v1/tenant/patient-portal/join-code" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @body.json
No endpoint matches that filter.