Body
The appointment action to perform. Required for all requests. Allowed values: book, reschedule, cancel, suggest, availability. For cancel and reschedule, provide appointment_id. For book, provide name, and either email or phone. For suggest and availability, use days_ahead to control the search window.
UUID of the agent handling the appointment
Customer full name (required for book)
Customer email (required for book if no phone)
Customer phone in E.164 format (required for book if no email)
ISO 8601 datetime for book or reschedule
Existing appointment ID (required for cancel and reschedule)
Optional call session ID for book
Optional notes for the appointment
Days ahead to look for available slots (default: 7, max: 30). Used for suggest and availability.
Response
Whether the request succeeded.
Natural language message to relay directly to the user
data field. Short label (e.g. Appointment confirmed, Cancelled, Rescheduled)
The action that was performed
Appointment ID (returned for book, reschedule, cancel)
Confirmed appointment datetime in ISO 8601
Name of the agent handling the appointment
Next action required if the request could not be completed (e.g. reschedule)
Available time slots grouped by date (returned for suggest, availability, and slot-unavailable responses) Date in YYYY-MM-DD format
Human-readable date label (e.g. Today, Tomorrow)
Available time slots (e.g. 9:00 AM)
{
"success" : true ,
"message" : "Appointment confirmed successfully" ,
"data" : {
"success" : true ,
"message" : "Booked successfully" ,
"summary" : "Appointment confirmed" ,
"action" : "book" ,
"appointment_id" : "appt_123" ,
"date_time" : "2026-03-20T14:00:00Z" ,
"agent_name" : "Dr. Rivera" ,
"action_required" : "" ,
"available_slots" : [
{
"date" : "2026-03-21" ,
"date_label" : "Tomorrow" ,
"slots" : [
"9:00 AM" ,
"11:30 AM"
]
}
]
}
}
{
"success" : false ,
"message" : "Requested slot is unavailable" ,
"error" : {
"code" : "SLOT_UNAVAILABLE" ,
"message" : "The selected time is no longer available" ,
"details" : {
"summary" : "Please choose a different slot" ,
"action" : "book" ,
"action_required" : "reschedule" ,
"agent_name" : "Dr. Rivera" ,
"available_slots" : [
{
"date" : "2026-03-21" ,
"date_label" : "Tomorrow" ,
"slots" : [
"10:00 AM" ,
"1:00 PM"
]
},
{
"date" : "2026-03-22" ,
"date_label" : "Friday" ,
"slots" : [
"9:30 AM" ,
"3:00 PM"
]
}
]
}
}
}
The appointment action to perform
Available options:
book,
reschedule,
cancel,
suggest,
availability
UUID of the agent handling the appointment
Customer full name (required for book)
Customer email (required for book if no phone)
Customer phone in E.164 format (required for book if no email)
ISO 8601 datetime for book or reschedule
Existing appointment ID (required for cancel and reschedule)
Optional call session ID for book
Optional notes for the appointment
Days ahead to look for available slots (default: 7, max: 30). Used for suggest and availability.
Natural language message to relay directly to the user