Calendar API
The Calendar API includes eight routes:
The Calendar Connections reference defines request and response fields for each route.
Connect Your Calendar
platform to google_calendar or microsoft_outlook. Open oauth_url in a browser and grant read-only calendar access. After the callback succeeds, list the connection to obtain its id and connected status.
Configure Auto-join
Connection defaults apply to sessions adopted after the change; they do not rewrite already-created sessions.
bot_will_join in a meeting response is the effective decision under policy, while bot_will_join_override is the explicit nullable override.
Session Defaults
UsePATCH /v2/calendar_connections/{id} to set defaults for future Google Meet and Teams sessions:
An assistant default cannot be combined with a non-null
default_voice or default_barge_in: true. Avatar settings are not accepted in calendar defaults. These additional defaults are REST parameters; MCP set_calendar_policy supports policy, bot name, voice, barge-in, and summary defaults only.
Connection reads return the saved defaults, including null for unset values, but omit the signing secret. Defaults do not change sessions already created. Use the calendar event to reschedule an auto-join; a session PATCH can return 409 calendar_managed.
Responses and Errors
Connection creation returns201 with data.platform, data.status: "pending_oauth", and data.oauth_url. It does not return a connection ID. Retrieve or list after successful consent to obtain it. The OAuth callback displays HTML, including for cancellation and errors.
Connection reads, updates, disconnects, and meeting overrides return 200 with data. Meeting lists return data[]; each item includes bot_will_join, nullable bot_will_join_override, decision, and nullable session_id. bot_will_join: true does not establish admission: retrieve the linked session and check joined_at.
Invalid settings or a window exceeding 31 days return 400 invalid_request; missing or another user’s connection returns 404 not_found; an unavailable feature returns 422 unsupported_capability or 503 not_configured. A duplicate connection completes OAuth with 409 already_connected. See Meeting API Errors for retry guidance.
Timing, Ownership, and Identity Retention
Calendar scheduling applies the configured join lead time. Ifevent.start_time - lead_time is still in the future, the bot starts joining then; if that lead window has elapsed, it starts at the event start time rather than using a past join_at.
Calendar connections, settings, and tracked-meeting controls are owned by the user who connected the calendar. Sessions generated from those meetings, and their transcripts, recordings, events, artifacts, and usage data, are organization-level Meeting resources visible to other authenticated users or API keys in the same Telnyx organization.
Organizer and attendee identities are retained only for a configured post-event window (currently 24 hours by default) and are then scrubbed from Calendar meeting records. Disconnecting also erases those Calendar identity fields. This identity-retention boundary does not delete the separately retained organization-level Meeting session resources.
Related
- Join with a meeting URL — create sessions through the API
- Live Transcript — follow the transcript stream in real time
- Collect Results — read the finalized transcript and summary