Book a class
create_bookingDefault guest booking (free, no account or OAuth sign-in required; Poppy Personal Agents sending Poppy-Session confirm via operations v3). Use it once the customer has agreed the class, the time and their details. Required fields: event_type_id (or slug), start_ms (decimal string from list_slots), attendee_name, attendee_email. Optional: attendee_phone, attendee_timezone, hold_id, notes, responses (answers to per-class questions), idempotency_key (24-120 chars [A-Za-z0-9_-]), recovery_secret (from begin_booking). Example: {"event_type_id":"evt_beginners","start_ms":"1795858200000","attendee_name":"Maya Lin","attendee_email":"maya@example.org","responses":{"Have you practised before?":"No"}}. Returns { booking: { id, status, host_name, start_ms, ... }, manage_url, manage_path, manage_token } (409 if full or hold expired).
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": {
"event_type_id": "<event_type_id>",
"start_ms": "<start_ms>",
"attendee_name": "<attendee_name>",
"attendee_email": "<attendee_email>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | optional notes for the teacher | |
| hold_id | No | optional 5-minute hold id from reserve_slot | |
| start_ms | Yes | the slot start as epoch milliseconds, in a decimal string, from list_slots | |
| responses | No | optional answers keyed by the class's booking questions (see list_event_types.questions) | |
| attendee_name | Yes | the customer's full name | |
| event_type_id | Yes | class id or slug | |
| attendee_email | Yes | the customer's valid email address | |
| attendee_phone | No | optional phone | |
| idempotency_key | No | a retry key: 24-120 letters, digits, '-' or '_' (a UUID or 32 hex characters; base64 padding '=' is refused). A retry with the same key and identical details returns the same booking, never a second one. | |
| recovery_secret | No | the secret from begin_booking. A retry returns manage_url again only when it presents this secret; send the same value on every attempt. | |
| attendee_timezone | No | optional IANA timezone from the offered list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| booking | Yes | One booking. | |
| idempotent | Yes | Whether this was a replay of an earlier admission. | |
| manage_url | No | ||
| manage_path | No | ||
| manage_token | No | ||
| attendee_start | No | ||
| manage_endpoint | No | ||
| manage_withheld | No |