Skip to main content
GET
https://api.trillet.ai
/
v1
/
api
/
gcal
/
calendars
List Google Calendars
curl --request GET \
  --url https://api.trillet.ai/v1/api/gcal/calendars \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "calendars": [
    {
      "id": "primary",
      "summary": "John Doe",
      "primary": true
    },
    {
      "id": "appointments@company.com",
      "summary": "Appointments",
      "primary": false
    }
  ]
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Query Parameters

pathwayId
string
required
The call flow pathway ID with the Google Calendar connection.

Response Fields

calendars
array
Array of available calendars.
id
string
Calendar ID.
summary
string
Calendar name/title.
primary
boolean
Whether this is the primary calendar.
{
  "calendars": [
    {
      "id": "primary",
      "summary": "John Doe",
      "primary": true
    },
    {
      "id": "appointments@company.com",
      "summary": "Appointments",
      "primary": false
    }
  ]
}