Public booking page
Part of Appointment Booking.
Like voting, booking is public and unauthenticated by design: the appointment type's public URL (see Configuration for how it is built) is the only thing a booker needs. Because the URL is the credential, appointment type ids (like poll ids) are capability-grade: long, random, and unguessable, never sequential. The public booking pages are rate-limited, like the voting pages.
What the booker sees
The page shows the appointment type's title, description, location, duration, and the owner's display name, alongside a month calendar. The booker picks a day, then a time from that day's slots. Only days with free times are selectable, and the calendar opens on the first month that has any, then pages month by month from there. Times appear in the booker's timezone, which the page detects from the browser and lets them change. On narrow screens the layout stacks, and the day's times open as a separate step.
When a month has no free times, the page says so instead of showing an empty grid. If later months have some, it offers to skip ahead to the next one that does. Past the last free time it says there are none left and offers the way back to the first month that has any. An appointment type with nothing free anywhere has no month worth paging to, so the notice replaces the calendar entirely.
Privacy: the page only ever exposes the offered slots. It does not reveal why other times are unavailable - "outside the weekly schedule" and "already booked" are not distinguishable from the outside. Slot derivation runs server-side (see slot derivation); the underlying schedule and bookings never leave the backend.
A paused appointment type renders the page with a "currently not accepting bookings" notice instead of the calendar; an unknown id renders a generic not-found page (the URL space must not be probeable for which ids exist versus are paused - unknown and deleted ids look identical).
Booking a slot
The booker picks a day and a time, enters their contact details in a dialog, and confirms after a short review step that restates the booking (when, timezone, location, who, message):
- a name, required;
- an email, required (unlike poll voters, where it is optional): it is the channel for the confirmation and the manage link;
- whatever else the owner asks. Every page starts with an optional message for them (e.g. "I'd like to talk about X"), and the owner can add their own questions, reorder them or drop them - see Booking form.
When the booker confirms, the slot is re-checked against the current schedule, rules, and existing bookings. If it was taken or became invalid in the meantime (the classic two-bookers race), the booking is rejected and the booker is asked to pick again. There are no tentative holds; whoever confirms first gets the slot, and two people confirming the same slot at once cannot both succeed.
The number of active bookings per email address and appointment type is capped, a brake on low-effort abuse alongside the rate limits.
A page can also ask the booker to confirm their address before anything is booked. The setting is Require email verification, under the page's Security and privacy settings. It is off unless the owner turns it on, and only offered where the deployment enables the feature (see Configuration). The booker fills in their details as usual, except that the dialog's button reads Verify email rather than Book appointment. A six-digit code arrives by mail, and the booking is created when they enter it. No code is sent for a time the page does not offer, or to an address already at the per-address cap: the booker gets the same message as on a page without verification.
The code is good for ten minutes and allows five attempts. Resend code sends a new one and retires the previous code, whether that code had expired or not. Asking again within a minute is refused, and the page says so rather than sending a second mail. After three new codes it stops offering more.
Once the attempts run out, the code boxes and Resend code are taken away, because a new code would fail the same way. Only Cancel is left, and the page asks the booker to wait a minute before starting again from their contact details.
The minute between codes and the limit of four codes count per address and page, not per code request. Starting over from the contact details sends a new code only when a resend would: not within a minute of the last code, and not once four codes have gone to that address for that page while any of them still works. The booker is told to wait and stays on the contact form. Once the last of those codes has expired, ten minutes after it was sent, the count starts again. Without this, anyone could use a page to send mail to any address, as often as the rate limit allowed. Addresses are counted case-insensitively and without a +tag in the part before the @, so jessy+1@example.com and Jessy+2@example.com share the count of jessy@example.com. Gmail ignores dots, so at gmail.com and googlemail.com they are dropped too, and both domains count as one. An internationalized domain counts the same as its xn-- form. The code still goes to the address as typed. Addresses containing quotes, a backslash, a comment in parentheses, angle brackets, brackets, a comma, a colon or a semicolon are refused, since mail software reads those as other spellings of the same mailbox.
The limit belongs to the address, not to whoever typed it. Someone who knows a booker's address can use up its codes for a page, and the booker then has to wait up to ten minutes before they can verify on that page. This is an accepted trade-off: a limit per address is what stops the page being used to flood a mailbox, and the service cannot tell the real booker from someone else typing their address.
Nothing holds the slot while the booker reads their mail, so it can still go to someone else. The page then returns them to the picker with a message. The slot and the per-address cap are checked again as the booking is created, so a booker who reached the cap while the code was on its way is stopped after entering a valid code.
Confirmation & manage link
A successful booking shows a confirmation page (what, when - in the booker's timezone - where, with whom) and sends the booker two mails: the calendar invitation (an iMIP REQUEST with the .ics, see Lifecycle) and Booking's own confirmation containing the manage link. The manage link contains its own random secret scoped to that single booking - it is deliberately not derivable from the booking page URL, so holding the page URL never grants access to someone else's booking. Cancel and rebook run through this link (see Lifecycle).
Localization & footer
The page is localized like the voting page (browser-detected, switchable), and renders the same configurable per-locale footer links (privacy policy etc., see Configuration). The owner's own questions are an exception: they render as written, whatever language the page is shown in (see Booking form). The locale the booking was made in is stored on the booking and used for all booker-facing mail for that booking's lifetime - it is not re-guessed later (see Lifecycle).

