Create an appointment
curl --request POST \
--url https://api.healos.ai/ext-api/v1/appointments \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"patient_id": "1743552000000",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"external_id": "PARTNER-APPT-789"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
patient_id: '1743552000000',
appointment_type: 'Initial Evaluation',
visit_type: 'Telehealth',
start_at: '2026-04-15T14:00:00.000Z',
duration_minutes: 50,
provider_id: 'aaaaaaa1-0000-0000-0000-000000000001',
notes: 'New patient intake. Please complete forms beforehand.',
status: 'SCHEDULED',
external_id: 'PARTNER-APPT-789'
})
};
fetch('https://api.healos.ai/ext-api/v1/appointments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.healos.ai/ext-api/v1/appointments"
payload = {
"patient_id": "1743552000000",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"external_id": "PARTNER-APPT-789"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"patient_id": "1743552000000",
"patient_name": "Maria Santos",
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"provider_name": "Dr. Alice Nguyen",
"provider_npi": "1234567890",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"created_at": "2026-04-01T10:00:00.000Z",
"updated_at": "2026-04-01T10:00:00.000Z",
"repeat_rule": {
"frequency": "WEEKLY",
"interval": 1,
"end_date": "2026-07-15"
},
"external_id": "PARTNER-APPT-789"
}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "external_id already in use",
"existing": {
"id": "<string>",
"external_id": "<string>"
}
}{
"error": "<string>",
"code": "idempotency_key_invalid"
}{
"error": "Rate limit exceeded. Please retry after the window resets.",
"code": "daily_cap_reached",
"reset_at": "2026-10-28T00:00:00.000Z"
}Appointments
Create an appointment
POST
/
appointments
Create an appointment
curl --request POST \
--url https://api.healos.ai/ext-api/v1/appointments \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"patient_id": "1743552000000",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"external_id": "PARTNER-APPT-789"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
patient_id: '1743552000000',
appointment_type: 'Initial Evaluation',
visit_type: 'Telehealth',
start_at: '2026-04-15T14:00:00.000Z',
duration_minutes: 50,
provider_id: 'aaaaaaa1-0000-0000-0000-000000000001',
notes: 'New patient intake. Please complete forms beforehand.',
status: 'SCHEDULED',
external_id: 'PARTNER-APPT-789'
})
};
fetch('https://api.healos.ai/ext-api/v1/appointments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.healos.ai/ext-api/v1/appointments"
payload = {
"patient_id": "1743552000000",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"external_id": "PARTNER-APPT-789"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"patient_id": "1743552000000",
"patient_name": "Maria Santos",
"provider_id": "aaaaaaa1-0000-0000-0000-000000000001",
"provider_name": "Dr. Alice Nguyen",
"provider_npi": "1234567890",
"appointment_type": "Initial Evaluation",
"visit_type": "Telehealth",
"start_at": "2026-04-15T14:00:00.000Z",
"duration_minutes": 50,
"notes": "New patient intake. Please complete forms beforehand.",
"status": "SCHEDULED",
"created_at": "2026-04-01T10:00:00.000Z",
"updated_at": "2026-04-01T10:00:00.000Z",
"repeat_rule": {
"frequency": "WEEKLY",
"interval": 1,
"end_date": "2026-07-15"
},
"external_id": "PARTNER-APPT-789"
}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "external_id already in use",
"existing": {
"id": "<string>",
"external_id": "<string>"
}
}{
"error": "<string>",
"code": "idempotency_key_invalid"
}{
"error": "Rate limit exceeded. Please retry after the window resets.",
"code": "daily_cap_reached",
"reset_at": "2026-10-28T00:00:00.000Z"
}| Requirement | Detail |
|---|---|
| Scope | appointments:write |
| Rate limit | About 60 requests per minute per API key (shared by all endpoints; approximate) |
| Cost | Free |
Safety
- Writes data: Yes. Creates an appointment in HealOS. It is not sent to your EHR.
- Safe to retry: Only with
external_id: a repeat with the sameexternal_idreturns409with the existing record instead of a duplicate. Without it, a retry creates a second record. - Contacts an outside system: None
- Dry run: Not available.
Headers
Makes a retry of this request safe. A repeat with the same key and the same request within 24 hours does not run again: it returns the original status with the resource as it is now, and an Idempotent-Replayed: true header. Keys are scoped to your organization and API key. See https://docs.healos.ai/idempotency.
Up to 255 printable ASCII characters. Use a new random value (a UUID) for each new request and resend the same value when you retry it.
Required string length:
1 - 255Example:
"5f0c3a8e-2b7d-4c1e-9a64-0d3f2e1b7c90"
Body
application/json
Was this page helpful?

