Bookings
Find free slots and book, move and cancel appointments from an AI agent
Nine tools let an agent look at your calendars, find a free slot and book, move or cancel an appointment. Bookings go through the same rules, emails and reminders as a booking made by your team in the app.
Every tool takes an optional orgId. Leave it out unless your key acts on other organisations. An id outside the target organisation behaves exactly like a missing one.
Bookings are available through MCP only. There is no GraphQL operation for them. MCP needs the Pro or Enterprise plan, on top of API access.
Bookings - 9
| Tool | Scope | Does |
|---|---|---|
list_calendars | SERVICES_READ | The connected calendars: id, provider, name. The id is the integrationId of the other tools. |
list_services | SERVICES_READ | Bookable services with duration, price, specialists and calendar. |
list_specialists | SERVICES_READ | Active team members and the services each performs. |
find_slots | SERVICES_READ | Free start times of one service. |
list_bookings | BOOKINGS_READ | Bookings made through Wexio, soonest first. |
get_booking | BOOKINGS_READ | One booking by id. |
create_booking | BOOKINGS_WRITE | Book a slot for a contact. |
reschedule_booking | BOOKINGS_WRITE | Move a booking to another start. |
cancel_booking | BOOKINGS_WRITE | Cancel a booking. |
To create or change the services and specialists themselves, see Services and Specialists.
The Booking Flow
- Call
list_calendarsand keep theidof the calendar you book on. - Call
list_servicesand keep theserviceRefof the service. Pass it exactly as returned. - Call
find_slotsfor a date range. - Call
create_bookingwith one of thestartsAtvalues from step 3.
A startsAt that find_slots did not return is refused.
list_services
| Argument | Type | Required | Description |
|---|---|---|---|
integrationId | string | No | Only this calendar's services. |
Each item has serviceRef, integrationId, calendarName, provider, name, durationMinutes, price, currency, description, bookable, requiresConfirmation, capacity, maxSeatsPerBooking and specialists.
bookable: false means the service is paid or asks the invitee for a location. You cannot book it through the API. Calendars that could not be read are listed in unavailableCalendarIds, so a failed read never looks like "no services". truncated is true when more than 10 calendars exist and only 10 were read.
find_slots
| Argument | Type | Required | Description |
|---|---|---|---|
integrationId | string | Yes | The calendar. |
serviceRef | string | Yes | From list_services. |
from / to | ISO-8601 with offset | Yes | The range. to must be after from, at most 42 days later. |
timeZone | string | Yes | IANA zone, such as Europe/Kyiv. |
specialistId | string | No | Only slots of this specialist. |
seats | number | No | 1 to 50. |
The result has timeZone, durationMinutes and slots. Each slot has startsAt, endsAt, specialistIds (who is free at that start) and remainingSeats.
list_bookings
| Argument | Type | Required | Description |
|---|---|---|---|
contactId / externalId | string | No | Only this contact's bookings. |
integrationId | string | No | Only this calendar. |
status | CONFIRMED | PENDING | CANCELLED | No | Filter by status. |
from / to | ISO-8601 | No | Starts at or after from, before to. |
limit | number | No | 1 to 100, default 50. |
cursor | string | No | Pass the nextCursor of the previous page. |
The result is { items, nextCursor, hasMore }.
create_booking
| Argument | Type | Required | Description |
|---|---|---|---|
integrationId | string | Yes | The calendar. |
serviceRef | string | Yes | From list_services. |
startsAt | ISO-8601 | Yes | A start returned by find_slots. |
timeZone | string | Yes | IANA zone. |
contactId / externalId | string | One way to name the contact | An existing contact. |
email + name | string | The other way | A contact is created, or reused by email. |
attendeeEmail | string | No | Who the calendar invite goes to. Default: email. |
specialistId | string | No | Book this specialist. |
seats | number | No | 1 to 50. |
idempotencyKey | string | No | 8 to 64 characters of A-Z a-z 0-9 _ -. Repeating the call with the same key returns the first result instead of booking twice. Scoped to your key. |
Emails and reminders fire as for a booking made by your team. A contact can hold at most 3 live bookings. Links and control characters are stripped from name, and name is cut to 100 characters.
reschedule_booking
Moves a booking to another start, keeping its length. The old booking becomes CANCELLED with rescheduledToId set, and the booking returned is the new one.
| Argument | Type | Required | Description |
|---|---|---|---|
bookingId | string | Yes | The booking to move. |
startsAt | ISO-8601 | Yes | A start returned by find_slots. |
timeZone | string | Yes | IANA zone. |
specialistId | string | No | Move to this specialist. |
idempotencyKey | string | No | As in create_booking. |
cancel_booking
| Argument | Type | Required | Description |
|---|---|---|---|
bookingId | string | Yes | The booking to cancel. |
reason | string | No | Up to 500 characters. Links and control characters are stripped. It reaches the cancellation email. |
Cancelling a booking that is already cancelled does nothing and returns it.
The Booking Object
{
id: string;
status: "CONFIRMED" | "PENDING" | "CANCELLED";
integrationId: string;
serviceRef: string;
specialistId: string | null;
contactId: string | null;
startsAt: string;
endsAt: string;
timeZone: string;
seats: number;
source: string; // "API" for bookings made with a key
meetingUrl: string | null;
rescheduledToId: string | null;
cancelledAt: string | null;
createdAt: string | null;
// Only with PII_READ:
manageUrl?: string | null;
attendeeEmail?: string | null;
attendeeName?: string | null;
}manageUrl, attendeeEmail and attendeeName are returned only when the key also holds PII_READ. Without it they are left out.
Limits
Bookings made through an API key have their own pool, separate from your team's bookings. Neither drains the other.
| Limit | Value |
|---|---|
| Bookings created, per key, per minute | 30 |
| Bookings created, per key, per day | 200 |
| Bookings created, all keys of the organisation, per day | 1000 |
| Live bookings per contact (applies to keys) | 3 |
find_slots range | 42 days |
The first three limits count only create_booking. Reading and the other tools use the general API key limits.
When a booking limit is hit, the tool answers with a rate-limit error that includes retryAfterMs. A booking that needs a slot that is no longer free, or a cancel or move that is not allowed, comes back as a conflict error with readable text.
Related
- Services and Specialists - create and change what can be booked.
- Booking events - the webhooks these tools trigger.
- Authentication - the scopes and what each unlocks.