Create Booking
create-bookingCreate a booking for a company as a guest. Requires a date (YYYY/MM/DD), an hour and shift_id obtained from list-available-slots, and the guest contact details. On success, returns a token field: the booking management token to pass to get-booking-info and cancel-booking. When type is "Deposit", give the guest the redirect_url to pay the deposit, which confirms the 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": {
"company_id": "<company_id>",
"date": "<date>",
"hour": "<hour>",
"shift_id": "<shift_id>",
"adults": "<adults>",
"name": "<name>",
"surname": "<surname>",
"email": "<email>",
"phone": "<phone>"
},
"name": "create-booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Guest city. | |
| date | Yes | Booking date in YYYY/MM/DD format (e.g. 2026/07/20). Note the slashes. | |
| hour | Yes | Booking hour in HH:MM format, taken from list-available-slots. | |
| name | Yes | Guest first name. | |
| pets | No | Number of pets. | |
| Yes | Guest email address. The booking confirmation and management token are sent here. | ||
| optin | No | Marketing opt-in flag (1 or 0). | |
| phone | Yes | Guest phone number. | |
| vegan | No | Whether the party includes vegan guests. | |
| adults | Yes | Number of adults. | |
| babies | No | Number of babies. | |
| country | No | Guest country. | |
| message | No | Optional message for the business. | |
| surname | Yes | Guest last name. | |
| children | No | Number of children. | |
| latitude | No | Guest latitude, if known. | |
| shift_id | Yes | The shift id, taken from list-available-slots. | |
| highchair | No | Number of highchairs. | |
| longitude | No | Guest longitude, if known. | |
| pushchair | No | Number of pushchairs. | |
| company_id | Yes | The company id, as returned by the find-company tool. | |
| vegetarian | No | Whether the party includes vegetarian guests. | |
| wheelchair | No | Number of wheelchairs. | |
| gluten_free | No | Whether the party needs gluten-free options. | |
| guest_token | No | Existing guest token, if the guest has booked before. | |
| nuts_allergy | No | Whether the party has a nut allergy. |