/api/book/{token}/bookingsCreate a public room booking
Creates a public room booking without requiring a bearer token. Provide starts_at and ends_at for a scheduled room, or duration_minutes for an on-demand room, which accepts 15, 30, or 60 minutes from now. Bookings must fall within the room's booking window and end before midnight; a blank title uses the default title.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Public room booking details. Use starts_at and ends_at for scheduled rooms, or duration_minutes for on-demand rooms.
A 409 is returned when the requested slot has just been taken, and a 410 when the token is unknown, Booking with TRMNL is off, or the room cannot be booked. A 422 is returned when the booking is outside the booking window, and a 429 when the token has exceeded its booking limit. duration_minutes must be 15, 30, or 60 for an on-demand room; starts_at must use ISO 8601 or YYYY-MM-DDTHH:MM in the room's time zone, and bookings must end before midnight. The token path parameter must identify a valid public booking token.