Skip to content

Calendar APICalendar

Calendar API

Every mailbox has a calendar. You pick the calendar by passing the mailbox's full address in the mailbox field, like hello@yourdomain.com. The mailbox must be in your organization, and the API key must have access to it. Availability only reads that one mailbox's calendar. You can't look up a teammate's free/busy time.

Last updated

The calendar event object

{
  "object": "calendar_event",
  "id": "evt_abc123",
  "revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "mailbox": "hello@yourdomain.com",
  "calendar_id": "cal_default",
  "uid": "…",
  "title": "Intro call",
  "invitation_language": "fr",
  "description": null,
  "location": null,
  "video_url": null,
  "all_day": false,
  "start": "2026-08-01T12:00:00.000Z",
  "end": "2026-08-01T12:30:00.000Z",
  "timezone": "Europe/Paris",
  "duration": "PT30M",
  "status": "confirmed",
  "free_busy_status": "busy",
  "privacy": null,
  "color": null,
  "recurrence": null,
  "recurrence_id": null,
  "reminders": [],
  "organizer": { "email": "hello@yourdomain.com", "name": "Hello" },
  "attendees": [{ "email": "guest@example.com", "name": "Guest", "status": "accepted" }],
  "created_at": null,
  "updated_at": null
}
FieldTypeDescription
idstringUnique event ID.
revisionstringContent revision to pass as expected_revision on an update.
mailboxstringThe mailbox (calendar owner) address.
calendar_idstring | nullThe calendar the event lives on.
titlestring | nullEvent title.
invitation_language"en" | "fr" | "es"Language for invitation, update, cancellation, and RSVP interface copy.
descriptionstring | nullLong description.
locationstring | nullPhysical location.
video_urlstring | nullVideo or conference join URL.
all_daybooleanWhether the event is all-day.
startstringUTC instant for timed events; a YYYY-MM-DD date for all-day events.
endstringUTC instant for timed events; the exclusive end date for all-day events.
timezonestring | nullThe event's own IANA zone. Null for all-day or floating events.
durationstring | nullISO 8601 duration (e.g. PT1H).
statusstring | nullconfirmed, tentative, or cancelled.
free_busy_statusstring | nullfree or busy.
privacystring | nullpublic, private, or secret.
colorstring | nullEvent color.
recurrenceobject | null{ frequency, interval?, count?, until?, by_day? }. A create, or an update that changes start, duration or recurrence, is refused with 422 when one occurrence lasts longer than the time until the next one, or when until is before start. A series made in another calendar app with month, week number, year day or set position filters is not checked.
recurrence_idstring | nullSet on an expanded recurrence instance.
remindersarrayEmail reminders as [{ minutes_before }].
organizerobject | nullOrganizer email and display name.
attendeesarrayAttendee email, display name, and RSVP status.
created_atstring | nullISO 8601 timestamp, when available.
updated_atstring | nullISO 8601 timestamp, when available.

List events

GET/v1/calendar/events

Scope: calendar:read. Required query params: mailbox, from and to (UTC instants). Optional: expand (return recurring events as individual instances), calendar_id, cursor, and limit (1 to 250, default 100). Returns a cursor-paginated list. A range that holds too many events to page through returns 422; narrow from and to.

Add q to search the range. It returns only the events whose title, description, location or attendees (names and email addresses) match. Matching ignores case and accents, every word must match, and a word matches the start of a word, so boar finds "Board". The text is trimmed and must be 1 to 200 characters, or the request returns 422. With expand=true a matching recurring event returns every occurrence in the range, including one edited to a different title; without it, the series once. A series matches on its own title and details. A new or edited event can take a few minutes to become searchable. q combines with calendar_id, cursor and limit.

GET /v1/calendar/events?mailbox=hello@yourdomain.com&from=2026-08-01T00:00:00Z&to=2026-09-01T00:00:00Z&q=board%20review

Create an event

POST/v1/calendar/events

Scope: calendar:write. start is a local date-time in the zone you set in timezone. Send an operation_key (16 to 200 letters, numbers, periods, underscores, colons, or hyphens) and reuse it when you retry the exact same payload. Set send_invitations to false to create the event without sending invitations. It defaults to true.

A timed event without timezone is created in the calendar time zone of the person behind the credential (the API key's creator or the OAuth user), then the organization's default time zone, then Etc/UTC. An all-day event has no zone. Before November 2026, such an event was created without a zone (floating).

{
  "mailbox": "hello@yourdomain.com",
  "operation_key": "calendar-create-01",
  "send_invitations": true,
  "title": "Intro call",
  "invitation_language": "fr",
  "start": "2026-08-01T14:00:00",
  "timezone": "Europe/Paris",
  "duration": "PT30M",
  "reminders": [{ "minutes_before": 10 }],
  "attendees": [{ "email": "guest@example.com", "name": "Guest" }]
}

Adding attendees sends them calendar invitations. Event responses list the organizer and each attendee's current RSVP status. Set invitation_language to en, fr, or es to choose the language of the invitation, update, cancellation, and RSVP interface. API calls default to English. Shipmail never translates the title, description, or location you send.

Create and update responses include invitation_outcomes, with a sent, failed, or unknown status for each recipient, plus the compatibility invitation_failures list of failed and unknown recipients.unknown means Shipmail cannot tell whether the message left. To retry the ones that didn't go through, send the exact same body and operation key again. Shipmail skips recipients it already sent to.

When you turn invitations off, each attendee who would have received one is listed in invitation_skipped with a reason: send_invitations_false on create, or send_guest_updates_false on update. Nothing was sent, so a skipped recipient is not a failure and a retry does not send to them.

{
  "invitation_outcomes": [],
  "invitation_skipped": [
    { "recipient": "guest@example.com", "reason": "send_invitations_false" }
  ],
  "invitation_failures": []
}

Get, update, or delete an event

GET    /v1/calendar/events/:id?mailbox=hello@yourdomain.com
PATCH  /v1/calendar/events/:id
DELETE /v1/calendar/events/:id?mailbox=hello@yourdomain.com

GET and DELETE require the mailbox query param. PATCH takes mailbox plus the fields to change in the body. Fields you leave out stay as they are. null clears the description, timezone, location, video_url, recurrence, or reminders. To change attendees, send the full list you want. Pass the event's revision as expected_revision so a write based on an old copy is rejected. Reuse the same operation_key when you retry the exact same payload. Set send_guest_updates to false to skip the update emails to guests. It defaults to true. DELETE returns 204.

PATCH and DELETE act on a whole event. An occurrence id from a list with expand=true is refused with 422, so a change meant for one occurrence never reaches the whole series. To change or delete a recurring series, use its id from a list without expand.

{
  "mailbox": "hello@yourdomain.com",
  "operation_key": "calendar-update-01",
  "expected_revision": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "send_guest_updates": true,
  "invitation_language": "es"
}

If you only change invitation_language, guests get no update. The new language applies to the next scheduling message.

Get availability

GET/v1/calendar/availability

Scope: calendar:read. Returns the free meeting slots in one mailbox's calendar. Required: mailbox, from, and to. Optional: duration (minutes, default 30), interval, timezone, days (comma-separated 0 to 6, 0 is Sunday), window_start and window_end (minutes from midnight), buffer, and minimum_notice.

Without timezone, the window uses the same default as event creation: your calendar time zone, then the organization's, then Etc/UTC. Before November 2026, it was always Etc/UTC. The response timezone is the zone used.

This endpoint does not read a booking page. It uses only the values you pass, so its slots can differ from the times a booking page shows. To get those times, use GET /v1/booking-pages/:id/slots from the booking pages API.

{
  "object": "calendar_availability",
  "mailbox": "hello@yourdomain.com",
  "from": "2026-08-03T00:00:00.000Z",
  "to": "2026-08-04T00:00:00.000Z",
  "duration_minutes": 30,
  "timezone": "America/New_York",
  "slots": [
    { "start": "2026-08-03T13:00:00.000Z", "end": "2026-08-03T13:30:00.000Z" }
  ]
}

Invitations in email

An invitation a mailbox receives arrives on the message.received webhook with an invitation field. Answer it with POST /v1/messages/:id/invitation and { "response": "accepted" }, tentative or declined. The answer lands on the calendar, and the organizer gets it by email when they sent the invitation.

To send an invitation you built yourself, attach its .ics file to POST /v1/messages. When the sending mailbox is the organizer and the key also has calendar:write, the event goes on its calendar and collects the guests' answers. Both are described in the Messages API.