API: calendars and appointments
List calendars and appointment types, find open times, and book, move or cancel appointments through the API.
All paths below start with https://YOUR-CRM-ADDRESS.
Method | Path | Permission | What it does |
|---|---|---|---|
|
|
| List calendars |
|
|
| List appointment types |
|
|
| Open times you can book |
|
|
| Book an appointment |
|
|
| List booked appointments |
|
|
| Get one appointment |
|
|
| Move or update an appointment |
|
|
| Cancel an appointment |
availability:read carries no customer data. appointments:read returns every booked customer's name, email and phone, so grant it only to tools that should see your customer list. A bot that books for one caller usually wants the booking assistant endpoints instead.
Calendars and appointment types
GET /api/v1/calendars lists your active calendars with their id, name, timezone and type.
GET /api/v1/calendars/types lists the bookable appointment types (add ?calendarId= to filter). Each has an id, name, slug, duration in minutes and calendarId.
Find open times
GET /api/v1/calendars/availability
Parameter | What it does |
|---|---|
| The appointment type. Or use |
| Required. The day, as |
| Optional last day of a range, up to 31 days (30 on a test token). |
| Optional: |
| Optional. The customer's timezone, for example |
curl "https://YOUR-CRM-ADDRESS/api/v1/calendars/availability?appointmentType=roof-inspection&date=2026-04-01" \
-H "Authorization: Bearer sk_live_YOUR_TOKEN"{
"data": [
{
"start": "2026-04-01T13:00:00.000Z",
"end": "2026-04-01T13:30:00.000Z",
"startTime": 1775048400000,
"endTime": 1775050200000,
"date": "2026-04-01",
"label": "Wednesday, April 1, 2026 at 9:00 AM EDT",
"timezone": "America/New_York",
"available": true
}
],
"meta": {
"appointmentTypeId": "kt1a2b3c4d5e6f7g8h9i0j1k",
"appointmentTypeName": "Roof Inspection",
"timezone": "America/New_York",
"startDate": "2026-04-01",
"endDate": "2026-04-01",
"truncated": false,
"returnsOnlyAvailableSlots": true
}
}Only bookable times come back. Every slot here can be booked with the endpoint below.
Each slot has a ready-to-read
labelin the calendar's timezone, so you never have to convert times yourself.When you ask by
appointmentTypeId, an empty list withmeta.appointmentTypeId: nullmeans that appointment type was not found, not that you are fully booked. When you ask byappointmentType(name or slug) and nothing matches, you get404 NOT_FOUND.If a name matches more than one appointment type, you get
400anderror.details.matcheslists them with their IDs.Each day in the range counts as one request against your rate limit.
Ask again when you need it. Times open and fill up all day, so do not reuse an old answer.
Book an appointment
POST /api/v1/calendars/appointments. appointmentTypeId, startTime, endTime, firstName, lastName and email are required. Send startTime and endTime exactly as availability gave them.
{
"appointmentTypeId": "kt1a2b3c4d5e6f7g8h9i0j1k",
"startTime": 1775048400000,
"endTime": 1775050200000,
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com",
"phone": "+15551234567",
"notes": "Side door, dog in the yard."
}Returns 201 with the appointment. Store its id: you need it to move or cancel the appointment later.
If the booking is refused you get 400 VALIDATION_ERROR, and error.details.reason says why:
| What to do |
|---|---|
| Someone took that time first. Check availability again and offer another time. Do not retry the same request. |
| The start and end do not match the appointment type's length. Send a slot's own pair. |
| Outside the calendar's hours for that day. |
| The calendar is closed that day of the week. |
| That date is blocked off. |
| The day has reached its booking limit. |
| That time has already started. |
| Sooner than this business takes bookings. |
| Further ahead than this business takes bookings. |
List appointments
GET /api/v1/calendars/appointments with optional calendarId, contactId (one contact's bookings, newest first), status, startDate and endDate (Unix milliseconds) and limit (up to 100). There is no cursor: narrow the list with the filters instead.
Statuses are scheduled, unconfirmed, confirmed, completed, cancelled and no_show.
Calendar privacy. Each team member chooses, in My Profile → Calendars & Video, whether tools see their appointments in full or as busy/free only. Busy/free is the default. A busy/free appointment comes back with only its time, calendar, owner and "status": "busy", and "detailsHidden": true. A list filtered by contactId always shows that customer's own bookings in full.
Move or update an appointment
PUT /api/v1/calendars/appointments/{id} with only what you want to change:
{ "startTime": "2026-04-02T15:00:00Z", "contactId": "jd7a1b2c3d4e5f6g7h8i9j0k", "notes": "Customer asked for Thursday afternoon." }startTimealone moves it and keeps its length. SenddurationMinutesorendTimeto change the length.statuschanges the status.cancelledcancels it and frees the time.A new time is checked like a booking. If it is not free you get
409with one of the reasons above.Moving it sends the customer the rescheduled notice (send
"notifyAttendees": falseto skip that), fires your "appointment rescheduled" workflows, and updates any synced Google, Outlook or Zoom event.Send
contactId(the contact you found this appointment for). If the appointment is not theirs, the change is refused with403(details.reason: contact_mismatch). Tokens made for an AI assistant connection must always send it.
Cancel an appointment
DELETE /api/v1/calendars/appointments/{id}?contactId=jd7a1b2c3d4e5f6g7h8i9j0k&reason=Customer%20request
contactId works the same way as when moving. An appointment from another account is always 404.
Appointment types
A token with appointment-types:write can create and change appointment types (POST /api/v1/appointment-types, PATCH /api/v1/appointment-types/{id}), and one with appointment-types:delete can delete them. Reading them is availability:read. See the full reference at https://YOUR-CRM-ADDRESS/developers for the fields.
Related webhooks
appointment.booked, appointment.rescheduled, appointment.cancelled, appointment.confirmed, appointment.completed and appointment.no_show.
Was this article helpful?
Your answer helps us improve this article.
Related articles
- API for booking assistants and chatbotsThe safe endpoints for an AI assistant: your price list, one customer's quotes, and one verified caller's own appointments.
- API rate limitsHow many requests a token may send each minute, how to read the limit headers, and what to do when you hit 429.
- API: webhooksGet a request sent to your server the moment something happens, verify it really came from us, and handle retries.
- API errorsThe error format every endpoint uses, what each code means, and which errors are safe to retry.