API for booking assistants and chatbots
The safe endpoints for an AI assistant: your price list, one customer's quotes, and one verified caller's own appointments.
These endpoints are built for an AI assistant talking to one customer at a time. Each one answers only what the conversation needs, so a token you hand to a bot vendor never opens your whole customer list.
A good permission set for a booking bot is: availability:read, service-types:read, booking-estimates:read, booking-appointments:read, booking-appointments:write, plus contacts:write if it should save the caller's details. Leave out appointments:read, which is the full appointment list with every customer's details.
All paths below start with https://YOUR-CRM-ADDRESS.
Method | Path | Permission | What it answers |
|---|---|---|---|
|
|
| When are you free? (details) |
|
|
| What do you charge? |
|
|
| Do I already have a quote? |
|
|
| What is booked for me? |
|
|
| Which of my bookings can I still change? |
|
|
| Cancel my appointment |
|
|
| Move my appointment |
Call these from your bot platform's server-side tools, never from code running in a web page.
Your price list
GET /api/v1/booking/service-types?search=drain&limit=20
Returns the services you currently sell, with name, description, category, price, currency and hasVariablePricing. When hasVariablePricing is true the price depends on quantity or options, so treat price as a starting point and offer a proper quote. Retired services are left out.
{
"data": [
{ "id": "ks1a2b3c4d5e6f7g8h9i0j1k", "name": "Drain cleaning", "description": "One drain, up to 50 ft.", "category": "Plumbing", "folder": null, "price": 149, "currency": "USD", "hasVariablePricing": false }
],
"meta": { "total": 1, "hasMore": false, "limit": 20, "search": "drain" }
}The customer's quotes
GET /api/v1/booking/estimates?contactId=jd7a1b2c3d4e5f6g7h8i9j0k
Returns up to five quotes for the contact the conversation is with, approved ones first: the quote number, status (sent, viewed or accepted), isApproved, total, currency, validUntil and isExpired. There are no line items, notes or titles.
Wire contactId from your bot platform's own contact ID variable, the one the CRM sends with every message. Never let the AI fill it in from the conversation, or it could look up the wrong person. Values that are not a real contact ID (an empty template, "unknown", "12345") are refused with a clear error. The endpoint also only answers for a contact who has messaged with you in the last 24 hours.
One caller's own appointments
The customer proves who they are by sending either their contact ID, or two details that match the same contact: email, phone (in +15551234567 form) and lastName. A last name alone is never enough.
What is booked for me? POST /api/v1/booking/appointments
{ "email": "jane@example.com", "phone": "+15551234567" }Returns that customer's appointments only, including past and cancelled ones, up to 20 (check meta.hasMore).
Before you cancel or move anything, use /actionable. It returns only appointments that can still be changed:
{
"data": {
"appointment": {
"id": "ka1b2c3d4e5f6g7h8i9j0k1l",
"title": "Softener install",
"startTime": 1789059600000,
"endTime": 1789061400000,
"label": "Thursday, September 10, 2026 at 1:00 PM EDT",
"status": "scheduled",
"canCancel": true,
"canReschedule": true,
"partOfSeries": false
},
"appointments": []
},
"meta": { "total": 1, "ambiguous": false }
}appointment is filled in only when exactly one booking can be changed. When there are several, it is null and meta.ambiguous is true: ask the customer which one they mean, using each label.
Cancel: POST /api/v1/booking/appointments/cancel
{ "email": "jane@example.com", "phone": "+15551234567", "appointmentId": "ka1b2c3d4e5f6g7h8i9j0k1l", "confirm": true, "reason": "Out of town" }confirm: true is required. Cancelling one that is already cancelled returns 200 with alreadyCancelled: true, so retries are safe.
Move: POST /api/v1/booking/appointments/reschedule
{ "email": "jane@example.com", "phone": "+15551234567", "appointmentId": "ka1b2c3d4e5f6g7h8i9j0k1l", "newStartTime": 1789146000000, "newEndTime": 1789147800000 }Take newStartTime and newEndTime straight from an availability slot's startTime and endTime. The time is checked again, so a slot taken in the meantime is refused rather than double-booked.
Recurring appointments (partOfSeries: true) are never cancelled or moved through these endpoints. The request is refused and your team is notified so a person can sort it out.
Was this article helpful?
Your answer helps us improve this article.
Related articles
- API: calendars and appointmentsList calendars and appointment types, find open times, and book, move or cancel appointments through the API.
- API tokens and permissionsCreate a private integration token, choose what it may do, and rotate, revoke or delete it safely.
- API: contactsCreate, find, update, tag and delete contacts, add notes, and read your custom fields through the API.
- API: email campaignsCreate a draft email campaign from one of your saved layouts, then send it now or schedule it, through the API.