Skip to main content
POST
Create an appointment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema for the AppointmentCreateExternalAPIController request body

calendar_id
integer
required

The ID of the calendar this appointment belongs to.

client_id
integer
required

The ID of the clinic client responsible for the appointment.

end_datetime
string<date-time>
required

ISO 8601 formatted datetime for when the appointment ends.

kind_id
integer
required

The ID of the appointment kind (type of appointment).

patient_id
integer
required

The ID of the clinic patient this appointment is for.

start_datetime
string<date-time>
required

ISO 8601 formatted datetime for when the appointment starts.

reason
string
default:""

The reason for this appointment.

resource_id
integer | null

The ID of the calendar resource (provider/room) assigned to handle this appointment.

Response

201 - application/json

Created

Appointments represent scheduled visits for patients at a clinic. Each appointment is uniquely associated with a patient and can include details about the visit, such as the reason for the appointment, duration, and any special instructions. If a client has scheduled two patients, this will be represented as two separate appointments in our system.

Unlike select legacy PIMS systems that create additional appointments for pickup and dropoff events, our appointment object includes both pickup and dropoff times when applicable, streamlining the scheduling process. This means a surgery would be represented as a single appointment with both check-in and check-out times, rather than as multiple separate appointments.

alert_tags
(enum<string> | string)[]
required

Array of alert tags associated with this appointment.

Available options:
CONTAGIOUS
calendar_id
integer
required

The ID of the calendar this appointment belongs to.

cancelation_reason
required

The reason for cancelation or no-show, if applicable.

Available options:
PATIENT_SEEN_ELSEWHERE,
CONCERN_RESOLVED,
PENDING_RESCHEDULE,
NO_LONGER_NEEDED,
WILL_RESCHEDULE,
DOCTOR_UNAVAILABLE,
CLINIC_SCHEDULE_CHANGE,
CREATED_IN_ERROR,
DUPLICATE,
WRONG_PATIENT,
WRONG_DATE_OR_TIME,
UNKNOWN,
OTHER,
NO_SHOW
cancelation_reason_other
string | null
required

Free-text explanation of the cancelation, if one was provided.

clinic_client_id
integer | null
required

The ID of the clinic client responsible for the appointment.

clinic_id
integer
required

The ID of the clinic this appointment belongs to.

clinic_notes
any | null
required

JSON structured notes for clinic use.

clinic_patient_id
integer | null
required

The ID of the clinic patient this appointment is for.

created
string<date-time>
required

The datetime this object was created.

deleted
string<date-time> | null
required

The datetime this record was soft deleted.

dropoff_start_datetime
string<date-time> | null
required

ISO 8601 formatted datetime for when the patient should be dropped off.

end_datetime
string<date-time> | null
required

ISO 8601 formatted datetime for when the appointment ends.

id
integer
required

The unique identifier for the appointment.

is_deleted
boolean
required

Whether this record is soft deleted or not.

modified
string<date-time>
required

The datetime this object was last modified; changes to related entities will not update this field.

pickup_start_datetime
string<date-time> | null
required

ISO 8601 formatted datetime for when the patient should be picked up.

reason
string | null
required

The reason for this appointment.

resource_id
integer | null
required

The ID of the calendar resource (provider/room) assigned to handle this appointment.

room_id
integer | null
required

The ID of the room assigned to this appointment, if any.

start_datetime
string<date-time> | null
required

ISO 8601 formatted datetime for when the appointment starts.

status
enum<string>
required

The current status of the appointment.

Available options:
CREATING,
CLIENT_CREATING,
UNSCHEDULED,
UNCONFIRMED,
CONFIRMED,
DROPPED_OFF,
CHECKED_IN,
IN_PROGRESS,
READY_TO_GO,
COMPLETED,
NO_SHOW,
CANCELED,
IMPORTED,
CLIENT_REQUESTED
followup_appointment_ids
integer[]

List of followup appointment IDs associated with this appointment.

kind
string | null

The appointment kind (type of appointment).

kind_id
integer | null

The ID of the appointment kind (type of appointment).

medical_record_id
integer | null

The ID of the medical record associated with this appointment, if any.

resource_name
string | null

The name of the calendar resource (provider/room) assigned to handle this appointment.

room_name
string | null

The name of the room assigned to this appointment, if any.