locations.write and users.write scopes, and copy the Agency token (a sub-account token cannot create locations and causes the 403 Forbidden resource error).
snapshotId from the snapshot settings menu.
POST https://services.leadconnectorhq.com/locations/) with headers Authorization: Bearer <AGENCY_TOKEN> and Version: 2021-07-28 passing companyId, name, email, phone, and snapshotId.
Automate sub-account creation from an external payment webhook in agency sub-account <YOUR_LOCATION_ID>: 1. In Agency View > Settings > Private Integrations, create an Agency-scoped token with locations.write and users.write enabled. 2. In Agency View > Account Snapshots, copy the target snapshotId for new client onboarding. 3. In Automation > Workflow Builder, trigger on Inbound Webhook from the checkout processor, create the contact, and send a POST Custom Webhook to https://services.leadconnectorhq.com/locations/ with Version 2021-07-28 and snapshotId.
# List agency locations and snapshots before wiring webhook provisioning ghl-agency locations --context <YOUR_CONTEXT> ghl-agency snapshot-diff-audit --context <YOUR_CONTEXT> --location <YOUR_LOCATION_ID>
Official GHL MCP vs. ghl-tools: HighLevel’s official hosted MCP (services.leadconnectorhq.com/mcp) covers public v2 CRM records (contacts, opportunities, appointments, conversations). ghl-tools MCP complements it with workflow graph inspection & recipes, funnel/form builders, DNS/BIMI checks, and ghl-crm doctor audits.
locations.write and users.write scopes in Agency View > Settings > Private Integrations, grab your vertical Snapshot ID in Agency View > Account Snapshots| Step | Menu Path in GHL | Action |
|---|---|---|
| Step 1 | Agency View > Settings > Private Integrations | Click Create New Integration, enable the locations.write and users.write scopes, and copy the Agency token (a sub-account token cannot create locations and causes the 403 Forbidden resource error). |
| Step 2 | Agency View > Account Snapshots | Locate the template snapshot you want loaded into each new customer account and copy its snapshotId from the snapshot settings menu. |
| Step 3 | Automation > Workflow Builder | Trigger on Inbound Webhook from your payment processor, run Create/Update Contact, and add a Custom Webhook (POST https://services.leadconnectorhq.com/locations/) with headers Authorization: Bearer <AGENCY_TOKEN> and Version: 2021-07-28 passing companyId, name, email, phone, and snapshotId. |
Connect Claude Code, Cursor, or OpenAI Codex to our ghl-tools MCP Server & Rust CLI to build workflows, forms, and funnels from your editor, or start your GoHighLevel plan through our partner link to unlock $612+ in ready-to-import kits (including GHL SaaS Sub-Account Provisioning Pack) and weekly live clinics.