ATHENA PROD
Fetch booked appointments
Fetch booked appointments in Athena Prod
POSThttps://api.ontross.com/api/integrations/athena-prod/fetch-booked-appointments
Request Fields
input.org_id
integer
requiredAthena practice ID; also the scheduling context id.
Example
32817input.department_id
integer
requiredRuntime Athena context department.
Example
1input.schedule_ids
array
requiredScheduling resource IDs (provider/department schedules), e.g. '32817-4-10', from the calendar filters.
input.start_date
string
requiredFirst day of the window (YYYY-MM-DD).
Example
"2026-10-25"input.end_date
string
requiredLast day of the window (YYYY-MM-DD).
Example
"2026-10-31"auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
appointments
array
Booked appointments across the requested resources and window.
appointments[].id
string
Appointment ID.
Example
"32817-4-10.976543"appointments[].status
string
Appointment status.
Example
"f"appointments[].start
string
Start timestamp as the scheduling API returns it.
Example
"2026-10-25T09:00:00"appointments[].end
string
End timestamp.
Example
"2026-10-25T09:20:00"appointments[].duration
integer
Length in minutes.
Example
20appointments[].slot_ids
array
Slot IDs the appointment occupies.
appointments[].schedule_id
string
Scheduling resource the appointment is on.
Example
"32817-4-10"appointments[].provider_id
string
Provider the appointment is booked under.
Example
"32817-4"appointments[].appointment_type_id
string
Appointment type ID.
Example
"164"appointments[].appointment_type
string
Appointment type name, from internalAppointmentType.
Example
"Office Visit"appointments[].is_telehealth
boolean
Whether the appointment is telehealth.
Example
falseappointments[].is_virtual
boolean
Whether the appointment is virtual.
Example
falseappointments[].location_id
string
Department the schedule belongs to, derived from the schedule id (<practice>-<department>-<provider>).
Example
"32817-4"appointments[].utc_offset
string
UTC offset carried by the start time, e.g. '-07:00'.
Example
"-07:00"appointments[].patient
object
Patient on the appointment, when present.
appointments[].patient.id
string
Patient chart ID on the appointment.
Example
"32817-1133"appointments[].patient.name
string
Patient display name as the calendar shows it.
Example
"Example, Jordan"Code
curl curl %s %s POST \
--url https://api.ontross.com/api/integrations/athena-prod/fetch-booked-appointments \
%s %s 'X-API-Key: REPLACE_KEY_VALUE' \
%s %s 'content-type: application/json' \
%s %s '{"input":{"department_id":1,"end_date":"2026-10-31","org_id":32817,"schedule_ids":["32817-4-10"],"start_date":"2026-10-25"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"department_id": 1,
"end_date": "2026-10-31",
"org_id": 32817,
"schedule_ids": [
"32817-4-10"
],
"start_date": "2026-10-25"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"appointments": [
{
"id": "32817-4-10.976543",
"status": "f",
"start": "2026-10-25T09:00:00",
"end": "2026-10-25T09:20:00",
"duration": 20,
"slot_ids": [
"string"
],
"schedule_id": "32817-4-10",
"provider_id": "32817-4",
"appointment_type_id": "164",
"appointment_type": "Office Visit",
"is_telehealth": false,
"is_virtual": false,
"location_id": "32817-4",
"utc_offset": "-07:00",
"patient": {
"id": "32817-1133",
"name": "Example, Jordan"
}
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}