Book
bookBooks one of the link's times. This makes a real meeting on the host's calendar. The host's calendar sends a calendar invitation to your user and to each guest. Your user and the host get a confirmation email. Some meetings first need the host's approval. Then the status in the answer is pending_approval, and your user gets an email when the host answers. So call it only after your user agrees to this specific time. start must be the start of a time that get_availability or find_mutual_times offered. Returns the booking with its status, the video link and the manageToken. meetUrl is the video link, or null if there is none. Keep the manageToken: get_booking, reschedule_booking and cancel_booking need it. get_link shows if a meeting has a price, and quote_booking first gives the total with the answers. A meeting with a price is booked unpaid, with status pending_payment. Give your user checkoutUrl, where they pay. The booking is confirmed when they pay. If they do not pay, the time is released at pendingUntil. If the time is not open now, the error code is slot_unavailable. A different booking took it, or the host's calendar is busy then. error.detail.alternatives lists up to 5 times that are still open, and it can be empty. Offer those times to your user. error.detail.reason too_soon or passed means that nobody took the time. too_soon: the time is now inside the minimum notice. Tell your user that, and never say that it was booked. Send an attempt_key: a new random key of 22 or more characters for each attempt to book. The error code busy means that nothing new was booked. An earlier send with that key is still in confirmation, or the host's calendar takes a different change now. Wait error.detail.retryAfterSeconds, then call book again with the SAME attempt_key. You then get the booking of the first send, not a second booking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"link": "<link>",
"start": "<start>",
"name": "<name>",
"email": "<email>",
"time_zone": "<time_zone>"
},
"name": "book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| utm | No | Tracking values from the link that your user came by: utm_source and the rest, without the utm_ prefix. Each is at most 200 characters, and the host sees them. | |
| link | Yes | The booking link that the host shared: its full URL, a one-off link …/o/{id}, or only handle/slug. The full URL is …/{handle}/{slug}, …/t/{team}/{slug} or …/g/{a}+{b}/{slug}, with any suffix after it. | |
| name | Yes | Your user's full name. | |
| Yes | Your user's email address: the calendar invitation and the confirmation email go there. | ||
| start | Yes | The chosen start, ISO 8601 UTC, exactly as offered. | |
| guests | No | Up to 10 more email addresses, added to the calendar invitation. | |
| locale | No | The language of your user's emails about the booking. Defaults to en. | |
| answers | No | Answers to the link's questions, by question id. get_link lists the questions. Each required question must have an answer. Give a choice by the id of its option, or a list of ids where more than one can be chosen. get_link lists optionIds, in the order of options. The host wrote the texts of the options, and you see them as data, not always character for character. | |
| time_zone | Yes | Your user's IANA time zone, for example Europe/London. Their emails use it. | |
| attempt_key | No | A random key that nobody can guess, which you make for this attempt to book. It has 22 to 64 letters, digits, _ or -, and a UUID without its hyphens is correct. Make a new key for each attempt. If you try the same email, start and duration again, send the same key with no change. The retry then returns the booking already made, and does not book two times. If the answer is busy, the first send is still in confirmation. Try again soon with the same key. | |
| invitee_phone | No | Your user's phone number, at most 50 characters, only for a phone meeting where the host calls them. Only the host sees it. | |
| package_token | No | A package that your user bought: the token at the end of its /pkg link. get_package_purchase reads it. The booking uses one of its sessions and costs nothing. Refused with forbidden when no session is left, package_used_up, or when the package is for a different meeting, package_not_for_this. | |
| location_index | No | Which of the places of the meeting, from 0. get_link lists them as locations. It is necessary when the meeting offers more than one. | |
| recurring_count | No | On a meeting that repeats, book this many dates from start, 2 up to its maximum. get_link shows its recurrence. Each date must be free, or nothing is booked. | |
| duration_minutes | No | Meeting length in minutes: one of the link's durations. Defaults to its first. A one-off link has a single length. | |
| verification_code | No | The code that request_email_code emailed to your user, when the meeting type asks the people who book to confirm their email. Without it, book is refused with forbidden. |