---
title: "Install GoHighLevel"
api: "GET /v1/api/crm/install"
description: "Get the GoHighLevel OAuth authorization URL to connect your GHL CRM 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. GoHighLevel 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 GoHighLevel to.
</ParamField>

## Response Fields

<ResponseField name="url" type="string">
The GoHighLevel 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 GoHighLevel. 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://marketplace.gohighlevel.com/oauth/chooselocation?response_type=code&client_id=...&redirect_uri=...&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
