Trillet AI logo

List Google Calendars

List all available Google Calendars for the connected account.

GEThttps://api.trillet.ai/v1/api/gcal/calendars

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Query Parameters

pathwayIdstringrequired

The call flow pathway ID with the Google Calendar connection.

Response Fields

calendarsarray

Array of available calendars.

idstring

Calendar ID.

summarystring

Calendar name/title.

primaryboolean

Whether this is the primary calendar.

{
  "calendars": [
    {
      "id": "primary",
      "summary": "John Doe",
      "primary": true
    },
    {
      "id": "appointments@company.com",
      "summary": "Appointments",
      "primary": false
    }
  ]
}