Skip to content

Booking Pages API

Booking pages (bkp_ prefix) are public, agent-provisioned scheduling links. An agent creates a page bound to a calendar; a human opens the hosted booking_url, picks a slot, and Chronary creates a confirmed event on the calendar and fires event.created with a booking_page_id correlation field. See the Booking Pages guide for a walkthrough.

POST /v1/booking-pages
FieldTypeRequiredDescription
calendar_idstringyesCalendar a booking resolves to.
titlestringyesMeeting title shown on the page.
descriptionstringnoDescription shown to the booker.
duration_minutesintegernoSlot length (5–480, default 30).
buffer_minutesintegernoPadding before/after existing events (0–120, default 0).
window_daysintegernoHow far ahead bookings are allowed (1–365, default 14).
min_notice_minutesintegernoMinimum lead time before a bookable slot (default 0).
timezonestringnoIANA timezone for display + working hours (default UTC). It must be a time zone name the API accepts (an IANA name such as America/New_York, or a UTC offset like +05:00); anything else returns 400 validation_error.
availability_constraintsobject | nullnoWeekly working hours, e.g. {"mon":{"start":"09:00","end":"17:00"}}. null = any time in the window.
activebooleannoWhether the page accepts bookings (default true).

The API normalizes title and the booker’s name on the hosted page the same way it normalizes calendar names: invisible characters removed, whitespace runs collapsed to one space, ends trimmed. A value with no visible character, or with a control character, returns 400 validation_error. See Names.

{
"calendar_id": "cal_01H9X4M2P5R8T6V0",
"title": "Intro call",
"duration_minutes": 30,
"window_days": 14
}

Response 201: a BookingPage object including a slug and booking_url (https://api.chronary.ai/book/<slug>).

A calendar of a decommissioned agent is read-only: creating a page on it returns 409 agent_inactive, and its existing pages answer 404 on the public endpoints until the agent is restored.

While your organization is scheduled for deletion, its pages answer 404 on the public endpoints too. They take bookings again if you cancel the deletion.

Deleting a page’s calendar deletes the page too: its public link answers 404, it leaves the list, and it frees its slot in your plan’s booking-page limit.

GET /v1/booking-pages?limit=50&offset=0&calendar_id=cal_...

Response 200: { data: BookingPage[], total, limit, offset }, newest first. Pass calendar_id to list only the pages bound to that calendar. Agent keys see only pages on their own agent’s calendars.

GET /v1/booking-pages/:id
PATCH /v1/booking-pages/:id
DELETE /v1/booking-pages/:id

PATCH accepts any of the create fields except calendar_id. DELETE soft-deletes the page (its hosted URL stops resolving; already-booked events are unaffected) and returns 204.

GET /v1/booking-pages/:id/bookings?limit=50&cursor=...

Returns the events booked through the page, newest start first, with the invitee’s details from the booking form. limit is 1–100 (default 50). Pass the next_cursor of the previous page as cursor; it is null on the last page. Cancelled bookings are included with their status; deleted events are not.

{
"data": [
{
"id": "evt_01H9X4M2P5R8T6V0",
"booking_page_id": "bkp_01H9X4M2P5R8T6V0",
"calendar_id": "cal_01H9X4M2P5R8T6V0",
"start_time": "2026-07-15T16:00:00.000Z",
"end_time": "2026-07-15T16:30:00.000Z",
"status": "confirmed",
"invitee_name": "Ada Lovelace",
"invitee_email": "ada@example.com",
"invitee_notes": null,
"created_at": "2026-07-14T10:00:00.000Z"
}
],
"next_cursor": null
}
POST /v1/booking-pages/:id/rotate-slug

Gives the page a new slug and returns the page with its new booking_url. The old /book/<slug> link stops working at once, so share the new booking_url. Existing bookings are unaffected, and no webhook event is sent.

Terminal window
curl -X POST https://api.chronary.ai/v1/booking-pages/bkp_01H9X4M2P5R8T6V0/rotate-slug \
-H "Authorization: Bearer $CHRONARY_API_KEY"

SDKs: bookingPages.listBookings(id, { limit, cursor }) / bookingPages.rotateSlug(id) (TypeScript), booking_pages.list_bookings(id) / booking_pages.rotate_slug(id) (Python), BookingPages.ListBookings / BookingPages.RotateSlug (Go). CLI: chronary booking-pages bookings <id> and chronary booking-pages rotate-slug <id>.

The slug is the credential — these endpoints take no API key.

GET /book/:slug/slots

Response 200:

{
"booking_page": { "slug": "<slug>", "title": "Intro call", "description": null, "duration_minutes": 30, "timezone": "UTC" },
"slots": [{ "start": "2026-07-15T16:00:00.000Z", "end": "2026-07-15T16:30:00.000Z" }]
}

Slots are duration_minutes long and back-to-back. On each day, the first slot of each free stretch starts on a 30-minute mark in the page’s timezone (on a duration_minutes mark for a page shorter than 30 minutes). The marks count from the start of that day’s availability_constraints hours, or from midnight when the page has none, so a 30-minute page whose hours open at 09:15 offers 09:15, 09:45 and so on, and the first slot after an event that ends at 14:20 starts at 14:30.

The slots offered for a day depend only on the page’s settings and that day’s busy time. They do not depend on when the page is opened, on the from and to you pass, or on earlier days: a later request only leaves out the slots that are too soon. A slot never runs past midnight in the page’s time zone, so a page whose duration does not divide the day (for example 50 minutes) ends its day early. On a day when the clocks change, slots keep running back-to-back through the change, so the start times after it can sit at a different minute or hour for the rest of that day.

POST /book/:slug

Accepts JSON (returns JSON) or an HTML form (returns an HTML confirmation).

{ "name": "Ada Lovelace", "email": "ada@example.com", "notes": "Looking forward!", "start": "2026-07-15T16:00:00.000Z" }

Response 201: { "booking_page_id": "bkp_...", "event": { "id": "evt_...", "status": "confirmed" } }. The start must be one of the slots List available slots returns. A time such as 09:15 on a page that offers 09:00 and 09:30 is refused with 409 (slot_unavailable), even when it is free, because it would overlap both. A booking made earlier that day can move the day’s later start times (see the grid rule above), so a slot is also accepted, while it is free, when it is one the page lists for that day with no events on the calendar. Rarely, a listed slot that matches neither (the calendar changed twice that day) returns 409 slot_unavailable; list the slots again. The start is re-validated against live availability; a slot taken since the page loaded returns 409 (slot_conflict). On a calendar that refuses overlapping events, two bookers submitting the same slot at once can’t both get it: one booking is created and the other gets 409 slot_conflict.

Submissions are limited to stop a public link from being flooded: 3 per day for one email on one page, 100 per day (30 per hour) for one page, and 200 per day (30 per hour) from one network. Over a limit the response is 429 with a Retry-After header.

A page that can’t take bookings right now answers 503 with { "error": { "type": "unavailable" } }. One cause: on a plan whose monthly events limit is a hard stop (Free), public bookings stop once the account has used 80% of that limit, so the rest stays with the owner’s agents. The owner is emailed once that month, and bookings open again when the limit resets (start of the next UTC month).

GET /book/:slug

Returns the server-rendered HTML scheduling page (text/html). The picker shows up to 120 times a page and links to later times; pass ?from=<ISO> to start it at that instant. Pass ?slot=<ISO> to render the confirmation form for a chosen slot.

Booking pages are available on every plan — Free: 1, Developer: 5, Pro: 25, Custom: unlimited. Each booking creates an event, so booking volume counts toward the monthly events quota.