inboxes > calendar

Gets the inbox's calendar. Every inbox has one calendar, so this works before any event is created. Its etag (also the ETag response header) is the value to send in If-Match to make an update conditional.

Requires the calendar_read permission. Calendar is available in US production (api.agentmail.to) but not yet in EU production (api.agentmail.eu), which returns 403.

get/v0/inboxes/{inbox_id}/calendar

Request

  • Base URL
    https://api.agentmail.to
  • URL
    https://api.agentmail.to/v0/inboxes/{inbox_id}/calendar
  • Auth
    HTTP bearer

Path parameters

inbox_idstring required

The ID of the inbox.

Query parameters

consistency'eventual' | 'primary'

Read consistency. eventual (default) reads from the region that serves your request and may lag a write made moments earlier by up to a few seconds. primary reads from the primary region and always reflects every completed write.

Response

Response with status 200

inbox_idstring required

The ID of the inbox.

timezonestring required

IANA time zone name, for example America/New_York, Europe/London or UTC. Requests accept any capitalization and IANA aliases such as US/Eastern. The calendar stores and returns the canonical name, which for some zones is an older spelling: Asia/Kolkata is returned as Asia/Calcutta. Abbreviations such as PST and Windows names such as Pacific Standard Time are rejected.

event_countinteger required

Number of one-off and recurring events on the calendar. Each recurring event counts once.

created_atstring date-time required

Time at which the calendar was created. The calendar exists from the moment the inbox does, so this is the inbox's creation time.

updated_atstring date-time required

Time at which the calendar was last updated.

etagstring required

The calendar's current version, also sent as the ETag response header. Send it in If-Match to make an update conditional.

Changes