Back to Tools

create_booking

write:bookings

Create a new booking/appointment. Requires either a customerId or customer details (name + email/phone). Returns the created booking ID.

Input Parameters

Parameters

PropertyTypeDescription
customerIdstringExisting customer UUID (optional if creating new)
customerNamestringNew customer name (required if no customerId)
customerEmailstringCustomer email address
customerPhonestringCustomer phone number
serviceIdrequiredstringService UUID to book
variantIdstringService variant UUID (optional)
startTimerequiredstringBooking start time (ISO 8601)
assigneeIdstringTeam member UUID to assign
notesstringBooking notes (max 1000 chars)

Response

Response Schema

PropertyTypeDescription
bookingIdrequiredstringCreated booking UUID
customerIdrequiredstringCustomer UUID (new or existing)
statusrequiredstringBooking status ("pending")
startTimerequiredstringConfirmed start time (ISO 8601)
endTimerequiredstringCalculated 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.