#
Create an appointment from an active hold
POST
/api/v1/scheduling/appointments
request_id, and source_system plus external_reference, provide durable idempotency. Supply patient_id or all of given_name, family_name, birth_date, email and phone. A newly created identity receives an automatic MRN and remains marked for staff verification.
Access
OAuth 2.0 access tokenscheduling.write
Request body
application/json · required
Fields object · 10
| Field |
Type |
Details |
external_reference
required
|
string |
length ≤ 200
|
hold_id
required
|
string (uuid) |
|
request_id
required
|
string (uuid) |
|
source_system
required
|
string |
length 2–80pattern ^[a-z0-9_.-]+$
|
birth_date
|
string (date) |
|
email
|
string (email) |
length ≤ 254
|
family_name
|
string |
length ≤ 100
|
given_name
|
string |
length ≤ 100
|
patient_id
|
string (uuid) |
|
phone
|
string |
length ≤ 40
|
Example request body placeholder values
{
"external_reference": "string",
"hold_id": "00000000-0000-4000-8000-000000000000",
"request_id": "00000000-0000-4000-8000-000000000000",
"source_system": "string",
"birth_date": "2026-01-15",
"email": "[email protected]",
"family_name": "string",
"given_name": "string"
}
Responses
-
200
Idempotent replay of the same booking
-
201
Appointment and optional one-time intake URL created
-
409
Hold missing or expired, conflict, or idempotency identifier mismatch
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/appointments" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read an appointment by partner reference
GET
/api/v1/scheduling/appointments/by-external-reference
Access
OAuth 2.0 access tokenscheduling.read
Parameters
| Name |
In |
Type |
Details |
source_system
required
|
query |
string |
|
external_reference
required
|
query |
string |
|
Responses
-
200
Tenant-scoped appointment
-
404
External appointment reference not found
Example call
curl "$EHR_URL/api/v1/scheduling/appointments/by-external-reference" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read a partner-created appointment
GET
/api/v1/scheduling/appointments/{id}
Access
OAuth 2.0 access tokenscheduling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Tenant-scoped appointment
-
404
Partner-created appointment not found
Example call
curl "$EHR_URL/api/v1/scheduling/appointments/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Idempotently cancel a booked or checked-in appointment
POST
/api/v1/scheduling/appointments/{id}/cancel
Requires the current quoted appointment version in If-Match. request_id provides durable mutation idempotency.
Access
OAuth 2.0 access tokenscheduling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Request body
application/json · required
Fields object · 2
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Cancelled appointment or idempotent replay
-
409
Invalid state, stale version, or request_id mismatch
-
428
Current If-Match required
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/appointments/{id}/cancel" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Idempotently reschedule with conflict checks
POST
/api/v1/scheduling/appointments/{id}/reschedule
Requires the current quoted appointment version in If-Match. request_id provides durable mutation idempotency.
Access
OAuth 2.0 access tokenscheduling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Request body
application/json · required
Fields object · 3
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
starts_at
required
|
string (date-time) |
|
Example request body placeholder values
{
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"starts_at": "2026-01-15T15:30:00Z"
}
Responses
-
200
Updated appointment or idempotent replay
-
409
Conflict, stale version, or request_id mismatch
-
428
Current If-Match required
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/appointments/{id}/reschedule" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read conflict-checked availability
GET
/api/v1/scheduling/availability
The range must be positive and no longer than 31 days. Results respect the tenant booking profile, clinician appointments, schedule blocks and unexpired holds and are bounded to 500 slots.
Access
OAuth 2.0 access tokenscheduling.read
Parameters
| Name |
In |
Type |
Details |
service_id
required
|
query |
string (uuid) |
|
start
required
|
query |
string (date-time) |
|
end
required
|
query |
string (date-time) |
|
Responses
-
200
Service identifier and conflict-checked start/end slots
-
400
Invalid or over-broad range
-
404
Service not found in tenant
Example call
curl "$EHR_URL/api/v1/scheduling/availability" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Place an idempotent short-lived slot hold
POST
/api/v1/scheduling/holds
request_id is the durable idempotency key. Reuse with different content is rejected. hold_seconds defaults to 300 and must be 60 through 600.
Access
OAuth 2.0 access tokenscheduling.write
Request body
application/json · required
Fields object · 4
| Field |
Type |
Details |
request_id
required
|
string (uuid) |
|
service_id
required
|
string (uuid) |
|
starts_at
required
|
string (date-time) |
|
hold_seconds
|
integer |
default 300value 60–600
|
Example request body placeholder values
{
"request_id": "00000000-0000-4000-8000-000000000000",
"service_id": "00000000-0000-4000-8000-000000000000",
"starts_at": "2026-01-15T15:30:00Z",
"hold_seconds": 300
}
Responses
-
200
Idempotent replay of the same request
-
201
Hold created
-
409
Slot unavailable or request_id reused with different content
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/holds" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Release an active slot hold
DELETE
/api/v1/scheduling/holds/{id}
Access
OAuth 2.0 access tokenscheduling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
204
Hold released
-
404
Active hold not found in tenant
Example call
curl -X DELETE "$EHR_URL/api/v1/scheduling/holds/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
List active tenant locations and rooms
GET
/api/v1/scheduling/locations
Access
OAuth 2.0 access tokenscheduling.read
Responses
-
200
At most 1,001 active tenant-scoped locations with active rooms
Example call
curl "$EHR_URL/api/v1/scheduling/locations" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List active schedulable clinicians
GET
/api/v1/scheduling/providers
Access
OAuth 2.0 access tokenscheduling.read
Responses
-
200
At most 1,001 active owner or clinician provider records
Example call
curl "$EHR_URL/api/v1/scheduling/providers" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List enabled appointment services
GET
/api/v1/scheduling/services
Access
OAuth 2.0 access tokenscheduling.read
Responses
-
200
At most 1,001 enabled services including provider, duration, category, facility, room and version
Example call
curl "$EHR_URL/api/v1/scheduling/services" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List tenant scheduling webhook subscriptions
GET
/api/v1/scheduling/webhooks
Access
OAuth 2.0 access tokenscheduling.read
Responses
-
200
Subscriptions without signing-secret disclosure
Example call
curl "$EHR_URL/api/v1/scheduling/webhooks" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create a signed scheduling webhook subscription
POST
/api/v1/scheduling/webhooks
Owner only. The endpoint must be public HTTPS without userinfo or fragments. The signing secret is returned once. Delivery pins public DNS, rejects private and local addresses, does not follow redirects, signs the exact body and timestamp with HMAC-SHA256, and retries at most eight times with bounded backoff. Receivers get SunCharts-Event-Id, SunCharts-Delivery-Id, SunCharts-Event-Type, SunCharts-Timestamp and SunCharts-Signature (v1=hex). Supported events are appointment.created, appointment.changed and appointment.cancelled.
Access
OAuth 2.0 access tokenscheduling.write
Request body
application/json · required
Fields object · 3
| Field |
Type |
Details |
endpoint
required
|
string (uri) |
pattern ^https://
|
events
required
|
array of any |
items 1–3
|
label
required
|
string |
length 1–120
|
Example request body placeholder values
{
"endpoint": "https://app.example.test/callback",
"events": [
"appointment.created"
],
"label": "string"
}
Responses
-
201
Subscription created; signing_secret shown once
-
400
Invalid endpoint or event selection
-
403
Owner role required
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/webhooks" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Disable a webhook and terminally stop its pending deliveries
POST
/api/v1/scheduling/webhooks/{id}/disable
Access
OAuth 2.0 access tokenscheduling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
|
Responses
-
204
Subscription disabled
-
403
Owner role required
-
409
Webhook changed, disabled or not found
-
428
Current If-Match required
Example call
curl -X POST "$EHR_URL/api/v1/scheduling/webhooks/{id}/disable" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
No endpoint matches that filter.