Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Calendar

Every inbox has a calendar. Create events, send standard invitations, answer the ones you receive, and get webhooks when events start and end.

Every inbox has exactly one calendar. It exists from the moment the inbox does, uses the inbox’s address as its identity and is deleted with it. Your agent uses it three ways:

  • Schedule. Create one-off, all-day and recurring events through the API or the MCP server, and optionally email standard calendar invitations to the attendees.
  • Receive invitations. When someone emails the inbox a calendar invitation, the event appears on the calendar. Your agent can accept, decline or tentatively accept it.
  • React in real time. BillionSend sends a webhook when an event is created, changed, answered, deleted, starts and ends, so your agent can join a call or follow up without running a scheduler of its own.

Invitations are standard iCalendar (RFC 5545) carried by email as iMIP (RFC 6047), so they open as meeting invitations in Google Calendar, Outlook and Apple Calendar, and the invitations those apps send to the inbox are read the same way.

Create an event

Times are wall clocks in an IANA time zone. The response adds the UTC instants (start_at, end_at), which are the moments the start and end webhooks are due.

curl -X POST "https://api.billionsend.com/inboxes/{inbox_id}/calendar/events" \
  -H "Authorization: Bearer bs_..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Intro call with Acme",
    "start": "2026-10-15T14:00:00",
    "end": "2026-10-15T14:30:00",
    "timezone": "America/New_York",
    "location": "https://meet.example.com/acme-intro",
    "attendees": [{ "email": "jane@acme.com", "name": "Jane Doe" }],
    "send_invites": true,
    "client_id": "intro-acme-2026-10-15"
  }'
  • A timed event uses YYYY-MM-DDTHH:mm:ss with no offset or Z; the timezone decides the offset, daylight saving included. It defaults to the calendar’s timezone (UTC until you change it with PATCH /inboxes/{inbox_id}/calendar).
  • An all-day event sets all_day: true and uses YYYY-MM-DD; end is its last day, inclusive.
  • client_id makes a retry safe: the same client_id with the same body returns the first event (200 instead of 201), a different body is a 409 idempotency_conflict.
  • metadata is yours, up to 16 KB as JSON, and comes back in every webhook about the event.
  • A one-off event is at most 366 days long, each date of a recurring event at most 31, and a calendar holds up to 10,000 events (409 calendar_full past that).

Recurring events

Add recurrence with an RFC 5545 RRULE. start must itself be a date the rule produces.

{
  "title": "Team standup",
  "start": "2026-10-05T09:00:00",
  "end": "2026-10-05T09:15:00",
  "timezone": "America/New_York",
  "recurrence": { "rule": "FREQ=WEEKLY;BYDAY=MO,WE,FR", "exdates": ["2026-11-27T09:00:00"] }
}

Each date keeps its wall-clock start and length, so the standup stays at 09:00 New York time on both sides of a daylight-saving change.

Supported Not supported
FREQ DAILY, WEEKLY, MONTHLY, YEARLY SECONDLY, MINUTELY, HOURLY
INTERVAL (1 to 366), COUNT (1 to 10,000) or UNTIL COUNT together with UNTIL, RDATE
BYDAY (with 1MO, -1FR for monthly and yearly), BYMONTHDAY, BYMONTH, BYSETPOS, WKST BYWEEKNO, BYYEARDAY, BYHOUR, BYMINUTE, BYSECOND

A rule with an unsupported part is a 422 unsupported_recurrence. UNTIL is a UTC date-time (20261231T235959Z) for a timed event and a date for an all-day one.

Dates

An event’s id is its UUID. One date of a recurring event is addressed by a date id, the series UUID, an underscore and the date’s original start: 7c4e9b2a-…_t20261007T090000 for a timed date, …_d20261007 for an all-day one. It never changes, even if you move that date.

  • GET /inboxes/{inbox_id}/calendar/events/{series_id}/instances lists the dates of one series in a window.
  • PATCH a date id changes that date alone: it then has a row of its own (is_exception: true) and keeps following the series for the fields you did not change.
  • DELETE a date id cancels that date: it joins the series’ recurrence.exdates.
  • Changing the series’ own start, timezone, all_day or recurrence starts the series over: its cancelled and edited dates are dropped.

What is on the calendar

Two endpoints answer two questions.

Question Request Returns
What have I created? GET /inboxes/{inbox_id}/calendar/events One item for each one-off event, each recurring event and each edited date, the most recently changed first.
What is on the calendar? GET /inboxes/{inbox_id}/calendar/agenda Every date in a time window, recurring events expanded and cancelled dates left out, in start order.

The agenda’s window is the next 90 days unless after and before say otherwise, and at most 366 days wide. Both lists take limit (1 to 100) and page_token.

Send invitations

With send_invites: true on create, update or delete, the inbox is the organizer and emails each attendee, one mail each, with the subject Invitation: <title> (Updated invitation: and Canceled: for changes) and the event as an invite.ics attachment. These are the inbox’s own mail: they go through its send rules, limits and suppressions like any other message, so an inbox that holds its sends for approval holds the invitations as drafts for a person.

What became of each person’s mail is on the attendee’s invitation field: pending, sent, held (kept as a draft for a person) or failed with the reason in error (a suppressed address, a send limit, a refusal). An event is saved even when its mail cannot go out; send again with PATCH and send_invites: true.

  • Every change you send raises the event’s sequence, so calendar apps apply the newest.
  • An update that removes an attendee sends that person a cancellation.
  • DELETE …/events/{event_id}?send_invites=true sends a cancellation to everyone; the same on a date id cancels that date.
  • Only an event the inbox organizes can send invitations; send_invites on an invitation the inbox received is a 409 calendar_response_invalid.

Receive and answer invitations

When a delivered message carries a calendar invitation, the event is added to the inbox’s calendar with source: email, the organizer from the invitation and the message in origin_email_id, and a calendar.event.created webhook follows. Later mail from the organizer keeps it in step: an update changes the event (older sequences never overwrite newer ones), a cancellation cancels it, or one date of it.

An invitation is applied only when all of these hold:

  • the message was delivered (spam and held mail are never read) and its sender is authenticated;
  • the sender’s address is the invitation’s organizer: a forwarded invitation, or a cancellation from anyone else, changes nothing;
  • the file is a text/calendar or application/ics part (or a name ending in .ics) of at most 1 MB holding exactly one event with a time zone the calendar can read (Windows names such as Eastern Standard Time are read as their IANA zones).

An inbox imports at most 100 new events and a team at most 200 in a UTC day, and stops importing while the calendar is 90% full; updates and cancellations of events it already has always apply. Calendar services that send on an organizer’s behalf from another address, and files that bundle several events, are not read.

To answer, POST /inboxes/{inbox_id}/calendar/events/{event_id}/respond with status accepted, declined or tentative, an optional comment, and send_reply (default true) to email the organizer the answer. Name a date id to answer for one date. The events that can be answered carry response_status, the inbox’s own answer (needs_action until it gives one), on every list item too, so the invitations waiting for a reply are in GET …/calendar/agenda without fetching each.

An attendee’s reply to an invitation the inbox sent updates that person’s status, comment and responded_at and sends calendar.event.responded. Only the person who sent the reply can change their own answer.

Invitation text comes from the sender: treat a title, location or description you read from an email event as data, as you would the mail itself.

Webhooks

The six events are opt-in, like the inbox events: an endpoint receives them only when it lists them (calendar.event.created, calendar.event.updated, calendar.event.deleted, calendar.event.responded, calendar.event.starting, calendar.event.ending). data holds inbox_id and calendar_event, the event as the API shows it; calendar.event.updated adds previous with the old values of what changed. An endpoint filtered to some inboxes hears only those inboxes’ calendars, and the events are in the inbox’s event stream too.

calendar.event.starting and calendar.event.ending are sent for every one-off event and every date of a recurring event, with data.scheduled_at (the start or end it is for) and data.boundary_id (<event id>.start or .end, the same on every delivery of that boundary, so you can deduplicate). They are sent within about a minute after the moment and never early. A boundary that is more than an hour late (after an outage) is dropped, not sent; a cancelled event sends no start, and one cancelled while it runs still sends its end. An event created after it started does not send its start.

Deliveries are at least once and carry the event as it stood when the boundary was first processed; read the event for its current state.

Concurrency and errors

Every calendar and event has an etag (also the ETag header), "rv-3" for a calendar or an event. Send it as If-Match on a change to apply it only if the resource is unchanged; a stale one is a 412 precondition_failed. Without If-Match the change applies to the resource as it is.

Status name Meaning
404 not_found No such inbox, event or date.
409 calendar_full The calendar holds 10,000 events.
409 event_already_started The event has started: its start can no longer change.
409 event_ended The event has ended: only descriptions, location, metadata and attendees can change.
409 event_in_progress A series with edited dates cannot become a one-off event.
409 calendar_response_invalid Sending invitations for an event the inbox does not organize, or answering one that did not come from an invitation.
409 idempotency_conflict The client_id was used for a different event.
412 precondition_failed If-Match no longer matches.
422 unsupported_recurrence The rule has a part the calendar does not support.
422 validation_error A field is missing or invalid.

Finished events are deleted 90 days after their last date ended, with their edited dates; a recurring event that never ends is kept until you delete it.

An API key limited to one inbox can use that inbox’s calendar and no other.

Was this page helpful?