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

ToolScopeDoes
list_calendarsSERVICES_READThe connected calendars: id, provider, name. The id is the integrationId of the other tools.
list_servicesSERVICES_READBookable services with duration, price, specialists and calendar.
list_specialistsSERVICES_READActive team members and the services each performs.
find_slotsSERVICES_READFree start times of one service.
list_bookingsBOOKINGS_READBookings made through Wexio, soonest first.
get_bookingBOOKINGS_READOne booking by id.
create_bookingBOOKINGS_WRITEBook a slot for a contact.
reschedule_bookingBOOKINGS_WRITEMove a booking to another start.
cancel_bookingBOOKINGS_WRITECancel a booking.

To create or change the services and specialists themselves, see Services and Specialists.

The Booking Flow

  1. Call list_calendars and keep the id of the calendar you book on.
  2. Call list_services and keep the serviceRef of the service. Pass it exactly as returned.
  3. Call find_slots for a date range.
  4. Call create_booking with one of the startsAt values from step 3.

A startsAt that find_slots did not return is refused.

list_services

ArgumentTypeRequiredDescription
integrationIdstringNoOnly 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

ArgumentTypeRequiredDescription
integrationIdstringYesThe calendar.
serviceRefstringYesFrom list_services.
from / toISO-8601 with offsetYesThe range. to must be after from, at most 42 days later.
timeZonestringYesIANA zone, such as Europe/Kyiv.
specialistIdstringNoOnly slots of this specialist.
seatsnumberNo1 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

ArgumentTypeRequiredDescription
contactId / externalIdstringNoOnly this contact's bookings.
integrationIdstringNoOnly this calendar.
statusCONFIRMED | PENDING | CANCELLEDNoFilter by status.
from / toISO-8601NoStarts at or after from, before to.
limitnumberNo1 to 100, default 50.
cursorstringNoPass the nextCursor of the previous page.

The result is { items, nextCursor, hasMore }.

create_booking

ArgumentTypeRequiredDescription
integrationIdstringYesThe calendar.
serviceRefstringYesFrom list_services.
startsAtISO-8601YesA start returned by find_slots.
timeZonestringYesIANA zone.
contactId / externalIdstringOne way to name the contactAn existing contact.
email + namestringThe other wayA contact is created, or reused by email.
attendeeEmailstringNoWho the calendar invite goes to. Default: email.
specialistIdstringNoBook this specialist.
seatsnumberNo1 to 50.
idempotencyKeystringNo8 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.

ArgumentTypeRequiredDescription
bookingIdstringYesThe booking to move.
startsAtISO-8601YesA start returned by find_slots.
timeZonestringYesIANA zone.
specialistIdstringNoMove to this specialist.
idempotencyKeystringNoAs in create_booking.

cancel_booking

ArgumentTypeRequiredDescription
bookingIdstringYesThe booking to cancel.
reasonstringNoUp 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.

LimitValue
Bookings created, per key, per minute30
Bookings created, per key, per day200
Bookings created, all keys of the organisation, per day1000
Live bookings per contact (applies to keys)3
find_slots range42 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.

Was this page helpful?

On this page