Connect

Get HighLevel OAuth connect URL

Changed on

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.

get/v1/connect/gohighlevel

Request

  • Base URL
    https://zernio.com/api
  • Auth
    • HTTP bearer
    • or API key in header X-Connect-Token

Query parameters

profileIdstring required

Your Zernio profile ID (get from /v1/profiles).

redirect_urlstring

Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as myapp://callback; relative and unsafe URLs return 400.

Response

OAuth authorization URL and authenticated state

authUrlstring uri required

HighLevel URL to open in the user agent.

statestring required

Authenticated, expiring OAuth state handled by the callback.

Changes