Create Event
Changed onCreates a one-off or recurring event on the inbox's calendar. Times are wall-clock values in timezone (the calendar's default time zone if omitted); the response also gives each boundary as a UTC instant in start_at and end_at.
calendar.event.created is sent once the event is stored, then calendar.event.starting and calendar.event.ending as each date begins and ends. With send_invites: true the inbox also emails an invitation to every attendee.
Pass client_id to make retries safe: repeating the request with the same client_id and body returns the original event with status 200 instead of 201, for as long as the event exists.
With send_invites: true, each attendee counts as one send against the organization, pod and inbox send limits, charged before the event is stored. An over-limit request returns 429 rate_limit_exceeded and creates nothing. A replay of an earlier create is not charged again.
The event's etag is the value to send in If-Match to make a later update or delete conditional. Requires the calendar_event_create permission.
Calendar is available in US production (api.agentmail.to) but not yet in EU production (api.agentmail.eu), which returns 403.
Request
- Base URLhttps://api.agentmail.to
- URLhttps://api.agentmail.to/v0/inboxes/{inbox_id}/calendar/events
- AuthHTTP bearer
Path parameters
The ID of the inbox.
Request body
Response
Response with status 201
Changes
- info
endpoint added
- info