?fp_ref=moosh). If you start a 14-day trial or upgrade through /go/ghl-trial or /go/ghl, Moosh Works may earn a commission at no extra cost to you.
Video Walkthrough: How to Use Private Integrations for Agencies in GoHighLevel
Source: HighLevel · Watch on YouTube
Read Video Transcript & Chapter Notes
HighLevel walks through opening Private Integrations inside Agency and Sub-Account settings, selecting granular API scopes, copying the bearer token for external tools, and rotating tokens without breaking active automations.
- 00:00 · Private Integrations Overview: Why Private Integrations replace legacy API v1 keys for internal agency and sub-account connections.
- 01:45 · Selecting Granular API Scopes: Granting only the contact, calendar, opportunity, or workflow permissions an integration requires.
- 03:30 · Managing and Rotating Tokens: Updating permissions, expiring old credentials, and isolating access across client locations.
Private Integration Tokens vs Marketplace OAuth 2.0 vs Hosted MCP v2
HighLevel retired legacy API v1 keys in favor of API v2 on https://services.leadconnectorhq.com. Before writing code or configuring an HTTP Request node in n8n or Make, pick the auth path that matches how many agencies will install your integration.
Private Integration Tokens (PITs) live in Settings > Private Integrations at either the sub-account or agency level. They take two minutes to mint, skip OAuth token-refresh servers, and fit internal scripts, client reporting, or custom webhooks. Marketplace OAuth 2.0 apps fit SaaS vendors and add-ons that distribute across outside agencies and need install-time consent plus webhook subscriptions. When an AI coding assistant or chat agent needs to inspect or edit a sub-account, use Official Hosted MCP v2 (/guides/gohighlevel-official-mcp-setup) rather than hand-coding REST wrappers.
| Auth Path | Best Fit | Token Refresh | Primary Scope Boundary |
|---|---|---|---|
| Sub-Account Private Integration Token | Single client syncs, n8n/Make HTTP nodes, custom lead routers | Static bearer token; rotate on a schedule in Settings > Private Integrations | Isolated to one locationId; cannot cross into other sub-accounts |
| Agency Private Integration Token | Internal agency dashboards, multi-location provisioning, billing audits | Static bearer token stored in an agency vault | Agency-wide; keep out of client-facing scripts and third-party templates |
| Marketplace OAuth 2.0 App | Commercial apps installed by external agencies across many sub-accounts | Access tokens expire (~24h); refresh via OAuth refresh_token grant | Per-install scopes plus Marketplace webhook subscriptions |
| Official Hosted MCP v2 | Claude, Claude Code, ChatGPT, and Codex working inside sub-accounts | Handled by the MCP client via OAuth 2.0 PKCE consent | 181 hosted scopes across CRM, workflows, Voice AI, and Knowledge Bases |
Required headers, base URL, and a working contact upsert request
Every GoHighLevel API v2 call targets https://services.leadconnectorhq.com and passes three headers: Authorization: Bearer <TOKEN>, Version: 2021-07-28 (or the endpoint-specific version noted in HighLevel's API reference), and Content-Type: application/json for write payloads. Missing the Version header returns HTTP 400 or 422 even when your bearer token is valid.
Prefer POST /contacts/upsert over separate lookup-and-create calls when syncing web leads or billing records. Upsert matches existing contacts using the sub-account's deduplication rules (email or phone) and returns the contact ID in one request, cutting your burst rate-limit footprint in half.
curl -sS -X POST "https://services.leadconnectorhq.com/contacts/upsert" \
-H "Authorization: Bearer ${GHL_LOCATION_PIT}" \
-H "Version: 2021-07-28" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"locationId": "YOUR_LOCATION_ID",
"firstName": "Jordan",
"lastName": "Hayes",
"email": "jordan@example.com",
"phone": "+15125550142",
"source": "Website Quote Form",
"tags": ["web-quote", "speed-to-lead"]
}'
Rate limits, response headers, and webhook queues
HighLevel enforces two published rate limits on API v2 per Marketplace app per resource (each sub-account location or agency company): a burst cap of 100 requests per 10 seconds and a daily cap of 200,000 requests per 24 hours. For Private Integration Tokens, the 200,000-request daily ceiling is shared across all Private Integration tokens created inside that same location or company.
Do not poll GET /contacts/ or GET /opportunities/search every minute to check for updates. Subscribe to Marketplace webhooks or trigger an outbound Workflow Webhook action inside Automation > Workflows so HighLevel pushes events to your endpoint. When running bulk imports or syncing hundreds of leads at once, read HighLevel's rate-limit headers on every response and back off on HTTP 429.
- X-RateLimit-Max and X-RateLimit-Remaining report the current 10-second burst cap and remaining calls.
- X-RateLimit-Limit-Daily and X-RateLimit-Daily-Remaining report the 24-hour budget for that resource.
- X-RateLimit-Interval-Milliseconds reports the burst window length (10000 ms).
- Retry HTTP 429 and 5xx responses with exponential backoff plus jitter, and avoid firing unthrottled parallel loops from n8n or Make.
Token hygiene and common 401/403 mistakes
Most broken API v2 integrations come down to four setup errors: reusing an agency token inside a client's external automation tool, leaving delete scopes enabled on an integration that only reads reports, omitting locationId on sub-account endpoints, or rotating a token without updating the worker or webhook secret first.
Create a separate Private Integration per external tool (for example, one token for your reporting database and another token for your booking form bridge) with only the scopes that tool calls. If one vendor credential leaks or hits a burst loop, you can revoke that single token in Settings > Private Integrations without taking down other automations.
Step-by-Step Implementation Sequence
- Mint a scoped Private Integration Token in the target sub-account: Open Settings > Private Integrations inside the client sub-account, click Create new Integration, select only the scopes your script calls (such as contacts.readonly and contacts.write), and store the bearer token in your secret manager.
- Send a test request with the Version: 2021-07-28 header: Call GET https://services.leadconnectorhq.com/contacts/?locationId=<LOCATION_ID>&limit=1 with Authorization: Bearer <TOKEN> and Version: 2021-07-28, and confirm HTTP 200 plus X-RateLimit-Remaining headers.
- Replace polling loops with webhooks and 429 backoff: Trigger outbound payloads from Automation > Workflows (or Marketplace app webhooks) on contact or opportunity changes, and add exponential backoff on HTTP 429 responses for any batch sync.
Frequently Asked Questions
What is the base URL and required version header for GoHighLevel API v2?
Send API v2 requests to https://services.leadconnectorhq.com with Authorization: Bearer <TOKEN> and Version: 2021-07-28 (or the endpoint-specific date listed in HighLevel's API documentation).
What are the GoHighLevel API v2 rate limits?
API v2 allows up to 100 requests per 10 seconds (burst) and 200,000 requests per 24 hours per location or company resource. All Private Integration Tokens inside the same location share that 200,000 daily budget.
Should I use a Private Integration Token or OAuth 2.0 for GoHighLevel API v2?
Use a Private Integration Token for single sub-accounts, internal agency scripts, or n8n/Make HTTP nodes where you control the account. Use a Marketplace OAuth 2.0 app when external agencies will install your software across their own sub-accounts.
Does GoHighLevel API v2 replace Official Hosted MCP v2?
No, they serve different clients. Use API v2 for application code, webhooks, and custom backend syncs; use Official Hosted MCP v2 (https://services.leadconnectorhq.com/mcp/anthropic/v2 or /mcp/openai/v2) when connecting Claude, Claude Code, or ChatGPT directly to sub-accounts.
Next Steps on danielhallman.com
Review full GoHighLevel setup notes on /tools/highlevel or start a 14-day test account via /go/ghl-trial.