---
title: "Install Google Calendar"
api: "GET /v1/api/gcal/install"
description: "Get the Google OAuth authorization URL to connect Google Calendar to a call flow."
lastUpdated: "2026-11-04"
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://trillet-ai.jamdesk.app/llms.txt). Append `.md` to any page URL for its markdown version.

Open the returned URL in a browser and approve access. Google then redirects back to Trillet, which saves the connection on the call flow.

## Headers
<ParamField header="x-workspace-id" type="string" required>
Workspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).
</ParamField>

## Query Parameters

<ParamField query="pathwayId" type="string" required>
The `_id` of a saved call flow to connect Google Calendar to.
</ParamField>

## Response Fields

<ResponseField name="url" type="string">
The Google OAuth authorization URL. Redirect the user to this URL to authorize the connection.
</ResponseField>

## Errors

| Status | Body | When |
| --- | --- | --- |
| `400` | `{"message": "pathwayId query parameter is required"}` | No `pathwayId` (note: `message`, not `error`) |
| `400` | `{"error": "Flow must be saved before connecting Google Calendar. Please save your flow first."}` | `pathwayId` isn't a valid ID |
| `403` | `{"error": "You do not have access to this workspace."}` | You aren't a member of the `x-workspace-id` workspace |
| `403` | `{"error": "Pathway does not belong to this workspace."}` | The flow belongs to another workspace |
| `404` | `{"error": "Pathway not found"}` | No call flow with that ID |

<ResponseExample>
```json
{
  "url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...&redirect_uri=...&scope=...&state=..."
}
```
</ResponseExample>


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://trillet-ai.jamdesk.app/api-specs.zip
