Back to Tools
create_booking
write:bookingsCreate a new booking/appointment. Requires either a customerId or customer details (name + email/phone). Returns the created booking ID.
Input Parameters
Parameters
| Property | Type | Description |
|---|---|---|
customerId | string | Existing customer UUID (optional if creating new) |
customerName | string | New customer name (required if no customerId) |
customerEmail | string | Customer email address |
customerPhone | string | Customer phone number |
serviceIdrequired | string | Service UUID to book |
variantId | string | Service variant UUID (optional) |
startTimerequired | string | Booking start time (ISO 8601) |
assigneeId | string | Team member UUID to assign |
notes | string | Booking notes (max 1000 chars) |
Response
Response Schema
| Property | Type | Description |
|---|---|---|
bookingIdrequired | string | Created booking UUID |
customerIdrequired | string | Customer UUID (new or existing) |
statusrequired | string | Booking status ("pending") |
startTimerequired | string | Confirmed start time (ISO 8601) |
endTimerequired | string | Calculated end time (ISO 8601) |
Example
Requestjson
{
"type": "tool",
"name": "create_booking",
"params": {
"customerName": "Alice Brown",
"customerEmail": "alice@example.com",
"serviceId": "service-uuid",
"startTime": "2024-01-25T10:00:00Z",
"notes": "First-time customer, prefers quiet environment"
}
}Responsejson
{
"success": true,
"data": {
"bookingId": "new-booking-uuid",
"customerId": "new-customer-uuid",
"status": "pending",
"startTime": "2024-01-25T10:00:00Z",
"endTime": "2024-01-25T11:00:00Z"
}
}cURL Example
curl -X POST https://app.bizily.io/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{\n "type": "tool",\n "name": "create_booking",\n "params": {\n "customerName": "Alice Brown",\n "customerEmail": "alice@example.com",\n "serviceId": "service-uuid",\n "startTime": "2024-01-25T10:00:00Z",\n "notes": "First-time customer, prefers quiet environment"\n }\n}'Required scope: This tool requires the write:bookings scope. Make sure your API key has this permission enabled in Settings → Developer.