Skip to content

Calendar APIBooking pages

Booking pages API

A booking page shows when one mailbox is free at a public URL, so visitors can pick a slot and book a meeting. Booking pages are the only calendar configuration Shipmail stores. Shipmail works out the slots from the owner's calendar on each request and never stores them. One-off links are not listed here; see the booking links API.

Last updated

Booking branding and embed settings

GET/v1/booking-settingsscope booking_settings:readtier read
PATCH/v1/booking-settingsscope booking_settings:writetier write

These settings apply to the whole organization, so they have their own scopes. A key with booking_pages:write cannot change them, and keys limited to domains or mailboxes are refused. A PATCH acts for the person who created the key or approved the connection, and that person must be an Owner or Admin when the request arrives. Send only the fields you want to change. They are saved together, or none is.

Use an API key with these scopes, or an OAuth connection whose grant includes the Booking appearance permission, which you select in Custom. They are not OAuth scopes: an authorization request cannot ask for them, so a connection gets them only when the person approving it selects Booking appearance.

{
  "accent": "#2563eb",
  "corners": "soft",
  "show_badge": false,
  "embed_allowed_sites": ["example.com"]
}

For the accent, send ink or a six-digit hex colour. To use a colour preset from the dashboard, send its hex value. Corners can be round, soft or square. The embed allowlist accepts up to 10 hostnames or origins in addition to the organization's own domains. Send an empty array to clear the extra sites.

Without a paid plan or trial, a new accent or corners, new embed sites and hiding the badge are refused with 403, as in the dashboard. Showing the badge again always works. After a downgrade, Shipmail keeps the stored values.

{
  "object": "booking_settings",
  "entitled": true,
  "saved": {
    "accent": "#2563eb",
    "corners": "soft",
    "show_badge": false,
    "embed_allowed_sites": ["https://example.com"]
  },
  "effective": {
    "accent": "#2563eb",
    "corners": "soft",
    "show_badge": false,
    "embed_allowed_sites": ["https://example.com"]
  }
}

saved is what the organization stored. effective is what its booking pages apply: the saved values on a paid plan or trial, else ink, round corners, a visible badge and no extra sites. A booking page whose mailbox domain has its own theme shows that domain theme instead of the organization theme. A page with a named host shows the host's name first, with the brand name beside it.

Set a domain's public_name with PATCH /v1/domains/:id and the domains:write scope, which acts for an Owner or Admin with access to every mailbox. Its booking pages use that name in place of the organization name.

The booking page object

{
  "object": "booking_page",
  "id": "bkp_abc123",
  "mailbox": "hello@yourdomain.com",
  "slug": "intro",
  "url": "https://shipmail.to/book/yourdomain.com/intro",
  "name": "Intro call",
  "description": null,
  "duration_minutes": 30,
  "availability_days": [1, 2, 3, 4, 5],
  "window_start_minutes": 540,
  "window_end_minutes": 1020,
  "timezone": "America/New_York",
  "lock_timezone": false,
  "buffer_minutes": 0,
  "minimum_notice_minutes": 0,
  "max_advance_days": 30,
  "conferencing_provider": "zoom",
  "active": true,
  "notify_host": true,
  "require_email_verification": false,
  "questions": [
    { "id": "q_k3v9x2m7p1aa", "label": "Phone number", "type": "phone", "required": true }
  ],
  "duration_options": [],
  "weekly_hours": [
    { "day": 1, "start_minutes": 540, "end_minutes": 1020 },
    { "day": 2, "start_minutes": 540, "end_minutes": 1020 },
    { "day": 3, "start_minutes": 540, "end_minutes": 1020 },
    { "day": 4, "start_minutes": 540, "end_minutes": 1020 },
    { "day": 5, "start_minutes": 540, "end_minutes": 1020 }
  ],
  "date_overrides": [],
  "max_bookings_per_day": null,
  "max_bookings_per_week": null,
  "reminder_minutes_before": 1440,
  "follow_up_minutes_after": null,
  "follow_up_message": null,
  "created_at": "2026-07-07T10:00:00.000Z",
  "updated_at": "2026-07-07T10:00:00.000Z"
}
FieldTypeDescription
idstringBooking page ID (starts with bkp_).
mailboxstringThe mailbox whose availability the page exposes.
slugstringURL slug for the public booking page.
urlstring | nullPublic booking link, served under the mailbox's domain.
namestringDisplay name.
descriptionstring | nullOptional description.
duration_minutesintegerDefault meeting length in minutes, 5 to 480.
duration_optionsinteger[]Up to 6 lengths a visitor can choose, ascending. When not empty, duration_minutes is one of them. Defaults to [].
weekly_hoursarrayOpen intervals per weekday: { day, start_minutes, end_minutes }, up to 4 per day. Wins over availability_days and the window, which are derived from it.
date_overridesarrayTime off and special hours: { start_date, end_date, intervals }. Empty intervals means unavailable. Defaults to [].
availability_daysinteger[]Weekdays offered, from 0 for Sunday to 6 for Saturday. The simple alternative to weekly_hours.
window_start_minutesintegerStart of the daily window, minutes from midnight.
window_end_minutesintegerEnd of the daily window, minutes from midnight.
timezonestringIANA time zone the window is defined in.
lock_timezonebooleanWhen true, every visitor sees times in timezone, with no zone selector. Defaults to false.
buffer_minutesintegerPadding around existing events.
minimum_notice_minutesintegerMinimum notice before the first slot.
max_advance_daysintegerHow far ahead visitors can book.
conferencing_provider"zoom" | "google_meet" | nullOpt-in provider used to create a meeting for each booking.
activebooleanWhether the page accepts bookings.
notify_hostbooleanWhen true, the mailbox gets an email each time a visitor books, reschedules or cancels. Defaults to true.
require_email_verificationbooleanWhen true, a visitor enters a 6-digit code sent to their email before the booking is made. Defaults to false.
questionsarrayUp to 10 extra questions the public form asks after name and email: { id, label, type, required }. Defaults to [].
max_bookings_per_dayinteger | nullMost bookings on one day, 1 to 100, in the page's time zone. null means no cap.
max_bookings_per_weekinteger | nullMost bookings in one week, starting Monday, 1 to 100. null means no cap.
reminder_minutes_beforeinteger | nullReturns the largest preset at or below the first offset, with a minimum of 15 minutes. Null when reminders are off.
reminders_minutes_beforeinteger[]All reminder offsets in configured order.
follow_up_minutes_after60 | 1440 | nullEmail the person who booked this long after the end. null means off.
follow_up_messagestring | nullText of the follow-up email, up to 2,000 characters. Required with a follow-up.
created_atstringISO 8601 timestamp.
updated_atstringISO 8601 timestamp.

List and get

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

Scope: booking_pages:read. The list endpoint supports cursor and limit pagination.

Read a page's slots

GET/v1/booking-pages/:id/slotsscope calendar:read

Returns the open slots the page offers, computed exactly as its public page computes them, as UTC instants. from defaults to now and to to the end of the page's booking horizon. The window can span at most 62 days, and a window holding 5,000 slots or more is refused with a 422. A page that is not active offers no slots. timezone is the page's zone, for showing the times.

Pass duration in minutes to read the slots for another length the page offers. It defaults to duration_minutes. A length the page does not offer is refused with a 400 validation_error. The response's duration_minutes is the length used, and each slot ends that long after it starts.

GET /v1/booking-pages/bkp_abc123/slots?from=2026-11-09T00:00:00Z&to=2026-11-16T00:00:00Z&duration=30
{
  "object": "booking_page_slots",
  "booking_page_id": "bkp_abc123",
  "timezone": "America/New_York",
  "duration_minutes": 30,
  "from": "2026-11-09T00:00:00.000Z",
  "to": "2026-11-16T00:00:00.000Z",
  "slots": [
    { "start": "2026-11-09T14:00:00.000Z", "end": "2026-11-09T14:30:00.000Z" },
    { "start": "2026-11-09T14:30:00.000Z", "end": "2026-11-09T15:00:00.000Z" }
  ]
}

GET /v1/calendar/availability does not read a booking page and defaults to Etc/UTC, so use this endpoint to know which times a page shows.

Create a booking page

POST/v1/booking-pagesscope booking_pages:write
{
  "name": "Intro call",
  "mailbox": "hello@yourdomain.com",
  "slug": "intro",
  "duration_minutes": 30,
  "availability_days": [1, 2, 3, 4, 5],
  "window_start_minutes": 540,
  "window_end_minutes": 1020,
  "timezone": "America/New_York",
  "conferencing_provider": "zoom"
}

Conferencing is opt-in per booking page. The selected provider must already be connected to the page's mailbox, or the request is rejected. See Zoom and Google Meet.

Update or delete

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

Scope: booking_pages:write. PATCH accepts any subset of the create fields. DELETE returns 204.

{
  "conferencing_provider": null
}

Set conferencing_provider to null to stop creating meeting links.

Lengths, hours and limits

duration_minutes is the default length. To let visitors choose, list up to 6 lengths in duration_options, each 5 to 480 minutes, including duration_minutes. Send [] to offer one length.

weekly_hours sets up to 4 intervals per weekday, in minutes from midnight in the page's timezone, so a day can have a lunch break. Intervals do not overlap, and at least one must fit the shortest length. When you send it, Shipmail derives availability_days, window_start_minutes and window_end_minutes from it. Those three still work alone as the simple alternative, and on create they are only required without weekly_hours.

{
  "duration_minutes": 30,
  "duration_options": [15, 30, 60],
  "weekly_hours": [
    { "day": 1, "start_minutes": 540, "end_minutes": 720 },
    { "day": 1, "start_minutes": 780, "end_minutes": 1020 }
  ],
  "date_overrides": [
    { "start_date": "2026-12-24", "end_date": "2026-12-26", "intervals": [] },
    {
      "start_date": "2026-12-31",
      "end_date": "2026-12-31",
      "intervals": [{ "start_minutes": 540, "end_minutes": 720 }]
    }
  ],
  "max_bookings_per_day": 4,
  "max_bookings_per_week": 12
}

date_overrides changes specific dates, in the page's time zone. Empty intervals means you are away on those dates; otherwise the intervals replace that day's weekly hours. Send at most 100 entries that do not overlap, each spanning at most 366 days. Past entries may be dropped when you save.

max_bookings_per_day and max_bookings_per_week cap bookings from 1 to 100, counted in the page's time zone with weeks starting on Monday. Set them to null for no cap.

List bookings

GET/v1/bookingsscope calendar:readtier read

Lists booking records for the organization. Mailbox restrictions apply to the original mailbox ID of each booking, even if the page now uses a different mailbox. A restricted key can only see records with a known original mailbox ID.

Filter by booking_page_id, status( confirmed or cancelled), and from and to timestamps. The start time can equal from and must be beforeto. Results sort by start time and then ID. Passpagination.next_cursor as cursorto get the next page with the same filters.

curl 'https://shipmail.to/api/v1/bookings?status=confirmed&limit=25'   -H "Authorization: Bearer $SHIPMAIL_API_KEY"

Each record includes its stable booking ID, page ID, original mailbox, start and end, status, and guest contact information. answers contains question IDs, labels, and values, including phone answers. Null means the historical snapshot is unavailable. An empty array means the guest answered no questions. Bookings made before Shipmail stored booking records are absent.

Reminder and follow-up emails

Send up to three distinct offsets of 5 to 10,080 minutes inreminder_minutes_before. An empty array or null turns reminders off. A single legacy preset still works. Responses include all offsets inreminders_minutes_before. The legacy scalarreminder_minutes_before returns the largest preset at or below the first offset, with a minimum of 15 minutes. For example, an offset of 20 returns 15. If reminders are off, the scalar is null. The worker checks for due reminders every five minutes.follow_up_minutes_after emails the guest 60 or 1440 minutes after the meeting, with the text in follow_up_message. Set the delay to null to turn off the follow-up.

{
  "reminder_minutes_before": [1440, 60],
  "follow_up_minutes_after": 60,
  "follow_up_message": "Thanks for your time. Reply to this email if anything comes up."
}

Questions and host email

questions are asked on the public form after name and email, in order. A question's type is text (answers up to 500 characters), long_text (up to 2,000) or phone (up to 40, checked loosely), and required defaults to false. Labels are 1 to 120 characters.

{
  "questions": [
    { "id": "q_k3v9x2m7p1aa", "label": "Phone number", "type": "phone", "required": true },
    { "label": "What would you like to cover?", "type": "long_text" }
  ]
}

Leave out id for a new question and Shipmail generates one. Send an existing id to keep a question. PATCH replaces the whole list, so send every question you want to keep. Answers go on the event in the mailbox's calendar, in the host email and in the answers of the booking.created webhook, never in the visitor's confirmation.

With notify_host on, the mailbox gets an email from Shipmail each time a visitor books, reschedules or cancels through the public page. Changes made in Shipmail or through the API send none.

With require_email_verification on, a visitor of the public page enters a 6-digit code sent to the email address they typed before the booking is made. A code lasts 10 minutes and allows 5 tries. Bookings made through the API or in Shipmail need no code. One-off links created from a page copy its questions, notify_host and require_email_verification.