# Limits & errors

The endpoints and marketplace surfaces of the LeadConnector integration, what it does not do, and the common errors when connecting.

## Endpoints

The integration is built from Zernio's shared API plus a few LeadConnector-specific surfaces. These tools show for `gohighlevel` in the dashboard's All tools tab and on the hosted MCP.

Connect and settings:

- Get connect URL: `GET /v1/connect/gohighlevel`.
- Settings: read and update at `/v1/accounts/{accountId}/gohighlevel-settings`.
- Disconnect: `DELETE /v1/accounts/{accountId}`.

Conversions and ads:

- Send past won deals (last 90 days, 50 per call): `POST /v1/accounts/{accountId}/gohighlevel-won-deals-backfill`.
- Funnel tracking ([Funnel tracking](/platforms/leadconnector/funnel-tracking)): `GET /v1/accounts/{accountId}/gohighlevel-funnel-tracking`, and `POST /v1/accounts/{accountId}/gohighlevel-funnel-tracking/verify` to check a live page.
- Tags as ad audiences ([Tags as ad audiences](/platforms/leadconnector/audiences)): list and start at `/v1/accounts/{accountId}/gohighlevel-audiences`, stop with `DELETE /v1/accounts/{accountId}/gohighlevel-audiences/{syncId}`.
- Send events to every destination: `POST /v1/events`.
- List stored events: `GET /v1/events` (filter `source=gohighlevel`).
- Create a forwarding rule: `POST /v1/events/forwarding-rules`.
- Create a campaign: `POST /v1/ads/campaigns`.
- Boost a post as an ad: `POST /v1/ads/boost`.

CRM ([CRM API](/platforms/leadconnector/crm-api)):

- Contacts: search, get, create and update under `/v1/crm/{accountId}/contacts`.
- Log a note: `POST /v1/crm/{accountId}/contacts/{contactId}/activities`.
- Opportunities: list, get and update under `/v1/crm/{accountId}/deals`.
- Users to assign: `GET /v1/crm/{accountId}/owners`.

## Marketplace surfaces

Surfaces LeadConnector calls with its signed request, hosted by Zernio:

- Webhook ingest: `/api/webhook/leadconnector`, verified by its Ed25519 signature header.
- Workflow actions and triggers: `/api/integrations/leadconnector/actions/*` and `/api/integrations/leadconnector/triggers/*` (the `gohighlevel` paths answer too). LeadConnector does not sign these calls, so each module carries a secret header set in the app's configuration, and Zernio rejects a call without it. A repeated action call within 15 minutes runs nothing new.
  - **Send a Zernio conversion event:** event name, value, currency, email, phone and the source object id; honours `relayConversions` and `reportToAds`.
  - **Launch or boost a Zernio ad:** the `POST /v1/ads/boost` fields.
  - **Publish or schedule a post:** content, media URLs (comma separated; videos by extension), platforms (comma separated platform ids, empty for every connected social account), `scheduledFor` (ISO 8601, empty to publish now) and timezone. It runs the same checks and plan limits as `POST /v1/posts`.
- Custom page dashboard: `/api/integrations/leadconnector/custom-page`, embedded in the sub-account. It reads the sub-account from LeadConnector's signed user context, never from the URL.

## What you cannot do

- No replacement of LeadConnector's own SMS, WhatsApp or email providers. The Zernio channel carries Telegram, LINE, WeChat, iMessage and RCS; other channels are logged as notes.
- No backfill: conversations, calls and conversions from before the install are not synced. The one exception is won deals from the last 90 days, sent on request.
- No wallet billing configuration through the API. Rebilling and metering are set in the LeadConnector dashboard.
- Attribution is written back only when `writeBackAttribution` is on, and conversions forward to ad platforms only when `reportToAds` is on.

## Common errors

| Error | Cause | Fix |
|-------|-------|-----|
| `gohighlevel_access_denied` on the redirect | The user declined access | Start the connect again and approve access. |
| `gohighlevel_invalid_state` on the redirect | The link expired or was already used | Request a fresh `authUrl`. |
| `gohighlevel_connection_failed` on the redirect | LeadConnector refused the code exchange, or the location could not be read | Start the connect again; check the install covers this sub-account. |
| `503` on the connect endpoint | LeadConnector is not configured on this Zernio environment | Contact support. |

## Related

- [Connect](/platforms/leadconnector/connect)
- [Settings](/platforms/leadconnector/settings)
- [What syncs](/platforms/leadconnector/sync)