Get HighLevel OAuth connect URL
Changed onInitiates 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
- Redirect the user to authUrl (HighLevel's install screen).
- After the install, HighLevel returns the browser to Zernio's callback.
- 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.
Request
- Base URLhttps://zernio.com/api
- Auth
- HTTP bearer
- or API key in header X-Connect-Token
Query parameters
Your Zernio profile ID (get from /v1/profiles).
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
Changes
- info
endpoint added
- info