---
title: "Get HighLevel OAuth connect URL"
method: GET
path: "/v1/connect/gohighlevel"
tags: ["Connect"]
---

# Get HighLevel OAuth connect URL

`GET /v1/connect/gohighlevel`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/connect/gohighlevel`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Connect-Token`

Initiates OAuth (authorization code, no PKCE) for the Zernio HighLevel Marketplace app. Each HighLevel sub-account (location) becomes one connected account with `platform: gohighlevel`. An agency that installs the app across its sub-accounts gets one connected account per installed sub-account.

### Flow

1. Redirect the user to `authUrl` (HighLevel's install screen).
2. After the install, HighLevel returns the browser to Zernio's callback.
3. Zernio redirects to `redirect_url` (or the dashboard when omitted).

On success the redirect carries `connected=gohighlevel`, `profileId` and `accountId`. On failure it carries `error` (`gohighlevel_access_denied`, `gohighlevel_invalid_state` or `gohighlevel_connection_failed`), `platform=gohighlevel` and `error_message`.

Reconnecting the same sub-account on the same profile updates the stored connection in place and keeps its settings.

## Query parameters

- `profileId` string, required
- `redirect_url` string

## Response `200`

OAuth authorization URL and authenticated state

- object
  - `authUrl` string, uri, required: HighLevel URL to open in the user agent.
  - `state` string, required: Authenticated, expiring OAuth state handled by the callback.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: API key does not have access to this profile, or the key is read-only.
- `404`: Profile not found or access denied.
- `503`: HighLevel OAuth is not configured.

## Changes

- **2026-11-21** `3402449b7657`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/connect/gohighlevel/get.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/5118237fca81?raw)
