Calendars and bookings
A calendar is something customers can book: a class, a tasting, a consultation. Each has its own team, length, price and rules, and a booking page at book.<workspace>.yourfreesite.com/<slug> (or the workspace’s own booking domain), with every calendar it lists on a services page at / there. Everything here needs the crm permissions: crm:read to read, crm:write to change.
Calendars and appointments
Section titled “Calendars and appointments”| To | Operations |
|---|---|
| List, read, add, change and delete calendars | GET /api/v1/calendars GET /api/v1/calendars/{id} POST /api/v1/calendars PATCH /api/v1/calendars/{id} DELETE /api/v1/calendars/{id} |
| Find free times | GET /api/v1/calendars/{id}/slots |
| Book, move, cancel and settle appointments | POST /api/v1/appointments POST /api/v1/appointments/{id}/reschedule POST /api/v1/appointments/{id}/cancel POST /api/v1/appointments/{id}/status |
| Read appointments | GET /api/v1/appointments GET /api/v1/appointments/{id} GET /api/v1/appointment-stats |
| The workspace’s hours and each team member’s own | GET /api/v1/availability PUT /api/v1/availability GET /api/v1/availability/staff PUT /api/v1/availability/staff/{staffId} |
| The waitlist | GET /api/v1/waitlist DELETE /api/v1/waitlist/{id} |
A booking from the team’s side isn’t held to the booking hours, since the team can see someone outside them, but nobody is booked twice at once.
How free times are worked out
Section titled “How free times are worked out”GET /api/v1/calendars/{id}/slots answers the start times a customer could book, on the half hour, each with the team members free then. A time is free for a team member when:
- It’s inside their hours. Their own weekly hours if they have them (
weekly), else the workspace’s. A date override of their own comes first, then the workspace’s (a holiday closes for everyone without their own hours that day). A day inside their time off (timeOff, first to last day) has no hours at all. - Nothing they have overlaps it, with the calendar’s breaks around it:
bufferBeforeminutes before andbufferMinutesafter, as well as the breaks each existing appointment was booked with. Busy times on their mapped Google or Microsoft 365 calendar count too. - The day isn’t full: the calendar’s
maxPerDay, and the team member’s ownmaxPerDayacross every calendar. A class counts once. - It’s after the calendar’s notice (
noticeHours) and inside its window (windowDays).
Round robin hands a booking to whoever’s free then and has the fewest appointments coming up. From the team’s side it prefers those working then by their hours, then anyone free who isn’t away.
Classes
Section titled “Classes”A calendar with seats above 1 is a class: bookings at the same time join it, with whoever’s already teaching it, until its seats are taken. Each slot then says how many seats are left, and a booking can’t bring more people (partySize) than that, or than the calendar’s capacity. A class already booked keeps taking bookings even if the hours have changed since.
Intake questions
Section titled “Intake questions”A calendar’s questions are asked on its booking page after name and email: text, phone, choice (one of options) or checkbox (one box to tick, such as a policy). Required ones must be answered online; the team needn’t. Answers are kept on the appointment (answers, with each question’s words as they were), on the customer’s timeline, and in the contact field a question names (field).
Repeating series
Section titled “Repeating series”POST /api/v1/appointments with repeat books the same time every everyWeeks weeks (1 to 8), count times (2 to 52) or until until. The first time must be free; a later one someone’s booked is skipped and listed in series.skipped. Each appointment has the series’ seriesId; only the first sends a confirmation, which says how it repeats. POST /api/v1/appointments/{id}/cancel with following cancels the rest of the series too.
Reminders and follow-ups
Section titled “Reminders and follow-ups”A calendar’s messages are what it sends its customers, by email (from the workspace’s sending domain) or sms (from its Twilio number, into the contact’s conversation, so opt-outs hold and texts are metered):
kind |
Goes |
|---|---|
confirmation |
When it’s booked (or its deposit is paid). Texts only: the confirmation email is the workspace’s Booking confirmation template. |
reminder |
minutes before it starts (5 minutes to 30 days). |
follow_up |
minutes after it ends (up to 30 days), for appointments that happened. |
An empty subject or body uses the built-in words; otherwise they can use {{first_name}}, {{class_name}}, {{class_time}}, {{staff_name}}, {{manage_link}}, {{meeting_link}} and {{workspace_name}}. Each goes once for each time the appointment is booked for, so moving it sends its reminders again. One that can’t go (no sending domain or Twilio, no address, an opt-out) is skipped, not retried. A new calendar reminds by email the day before.
The waitlist
Section titled “The waitlist”On a calendar with waitlist on, a customer who finds no time left on a day can join its waitlist for that day from the booking page. When a time that day frees up (a cancellation, a move, a seat in a class), the first in line is emailed (and texted, with a phone number) a link to book it, for two hours; then the next is. The time isn’t held, so the link checks it’s still free. GET /api/v1/waitlist shows who’s waiting and who’s been offered what.
Time zones
Section titled “Time zones”Times are instants in the API. A calendar’s hours are on the availability’s clock (GET /api/v1/availability’s timezone, the workspace’s unless set). The booking page shows times in the visitor’s own zone, which they can change, and their emails use the zone they booked in (an appointment’s timezone).
Google Calendar, Microsoft 365 and Zoom
Section titled “Google Calendar, Microsoft 365 and Zoom”- Google Calendar. Each team member’s bookings go on the Google calendar they’re mapped to in Settings › Integrations › Google Calendar, and its busy times block their slots, in the API’s free times too. Edits and deletions made in Google come back: Digize watches each mapped calendar with a push channel, reads what changed since its last sync token, and moves (or cancels) the appointment, telling the customer as if the team had. Channels are renewed a day before they expire, and the integration’s page says which calendars are watched.
- Microsoft 365. The same for Outlook calendars, mapped in Settings › Integrations › Microsoft 365 by the address whose calendar each team member’s bookings go on: busy times block slots and bookings are pushed there. Another person’s calendar has to be shared with the connected account, with edit rights. Edits made in Outlook don’t come back.
- Zoom. A calendar whose
locationiszoomgives each booking a meeting in the connected Zoom account, moved and deleted with it; its link (zoomUrl) is in the customer’s emails and on their appointment’s page, as a Google Meet link (meetUrl) is on agoogle_meetcalendar.
Events
Section titled “Events”Automations and webhooks see booking.created, booking.rescheduled, booking.cancelled and booking.no_show, each with the appointmentId, calendarId, contactId and startsAt. Outbound webhooks get crm.appointment.created, .rescheduled, .cancelled and .updated (a status change, such as a no-show).