Disclosure: some links on this page are affiliate links. IsItDev earns a commission if you sign up through them, at no extra cost to you. It does not change what we recommend. Details.
You want n8n to create contacts, add tags or open deals in GoHighLevel, and every tutorial tells you to paste a “GoHighLevel API key” you can’t find. This guide shows how to connect n8n to GoHighLevel the current way, with a Private Integration token, and gives you three copy-paste recipes: a contact upsert, tags plus an opportunity, and GoHighLevel events sent to n8n.
Quick answer: The old GoHighLevel API key only works with API v1, which reached end-of-support on December 31, 2025. Create a Private Integration token in the sub-account instead and call API v2 from n8n’s HTTP Request node.
- In the client’s sub-account, open Settings, then Private Integrations, and create one with only the scopes you need.
- Copy the token straight away (it is shown once) and note the Location ID from Settings, Business Profile.
- In n8n, add an HTTP Request node with a Bearer Auth credential that holds the token.
- Call
https://services.leadconnectorhq.comwith the headerVersion: 2021-07-28and thelocationIdin the body or query. - For the other direction, add a Webhook action to a GoHighLevel workflow and point it at an n8n Webhook node.
In this guide
- Before You Start
- Where the GoHighLevel API Key Went
- Which GoHighLevel Plans Include API Access
- Step 1: Create a Private Integration in the Sub-Account
- Step 2: Find the Location ID
- Step 3: Test the Token With curl
- Step 4: Add the Token to n8n
- Recipe 1: Upsert a Contact From an n8n Webhook
- Recipe 2: Add Tags and Create an Opportunity
- Recipe 3: Send GoHighLevel Events to n8n
- Rate Limits and Bulk Jobs
- Troubleshooting: Errors and Fixes
- Keep Client Tokens Safe
- Where to Run n8n for GoHighLevel Webhooks
- Frequently Asked Questions
- Next Steps

Before You Start
- Access: an admin login to the sub-account, and an n8n instance with a public HTTPS address. GoHighLevel webhooks cannot reach
localhost. - Time: about 30–45 minutes for the token, the test call and the first recipe.
- Test safely: use a test sub-account or a contact with your own email and phone. API changes can fire the client’s existing workflows, including texts to real people.
- Client accounts: When I work in a client’s account, I ask to be added as a user and create the token inside their sub-account. Never ask a client for their password.
If APIs and webhooks are new to you, our API integrations and webhooks guide explains requests, headers and status codes in plain terms.
Where the GoHighLevel API Key Went
Older guides send you to the sub-account’s Business Profile for an “API Key”. HighLevel still describes that location API key there, but it belongs to API v1. HighLevel’s API migration guide says v1 reached end-of-support on December 31, 2025: existing v1 integrations may keep working, but they are no longer maintained. Its API documentation article adds that new legacy key generation is being phased out.
For new work you have two supported options, plus the legacy key you should retire:
| Option | Where you create it | Good for | Limits |
|---|---|---|---|
| Private Integration token (sub-account) | Sub-account Settings, Private Integrations | n8n workflows for one client: contacts, tags, opportunities | Shown once; up to 20 per account level; static until you rotate it |
| Private Integration token (agency) | Agency Settings, Private Integrations | Agency-level calls, such as reading sub-account details | Not accepted by contact and opportunity endpoints, which need a sub-account token |
| OAuth 2.0 app | A HighLevel developer account on the Marketplace, My Apps, Create App | n8n’s built-in HighLevel node; tools used by many accounts | Needs a client ID, secret, scopes and redirect URL; access tokens expire daily and are refreshed |
| Legacy location API key | Sub-account Settings, Business Profile | Old Zapier or n8n setups only | API v1 only, end-of-support since December 31, 2025 |
For n8n, use the sub-account token. HighLevel’s Private Integrations developer page describes it as a static OAuth2 access token: same Authorization: Bearer header, no refreshing.
Which GoHighLevel Plans Include API Access
As of December 2026, HighLevel’s Private Integrations help article says OAuth 2.0 and Private Integration tokens work on Starter ($97/month), Unlimited ($297/month) and Founder ($497/month, formerly Agency Pro), with standard endpoints such as contacts and opportunities on all three. Only a few endpoints need Founder, such as creating sub-accounts through the API. The pricing page still shows “Basic API access” on the Unlimited card, so don’t let that wording put you off Starter. Our GoHighLevel pricing breakdown shows what each plan costs once usage fees are added.
Step 1: Create a Private Integration in the Sub-Account
- Switch into the client’s sub-account, not agency view. Contact and opportunity endpoints accept only a sub-account token.
- Open Settings and find Private Integrations.
- Click Create New Integration. Give it a name that says which tool uses it, such as “n8n lead sync”, and a short description.
- Select only the scopes your workflows need. The list below covers every recipe in this guide.
- Create the integration and copy the token immediately. HighLevel shows it once and you cannot view it again later.
Private Integration scopes for this guide
contacts.write — Upsert Contact and Add Tagsopportunities.readonly — list pipelines and stage IDsopportunities.write — create or update opportunitiescontacts.readonly — only if a workflow also reads or searches contacts
Can’t see Private Integrations? Agency admins can create them by default, but the agency owner can switch that permission off per admin in the user’s roles and permissions. HighLevel’s developer page also says to check that the feature is enabled in Labs if the menu is missing.
Step 2: Find the Location ID
The Location ID identifies the sub-account and goes into most requests as locationId. HighLevel’s Location ID article gives two places to find it:
- Settings, Business Profile: the Location ID is shown on that page. This is the reliable method.
- The browser address bar: the value after
/location/while you are inside the sub-account.
Step 3: Test the Token With curl
Run this in a terminal on your computer (on Windows, Git Bash or WSL), after replacing both placeholders. It lists the sub-account’s pipelines and gives you IDs for Recipe 2.
curl --request GET \
--url 'https://services.leadconnectorhq.com/opportunities/pipelines?locationId=YOUR_LOCATION_ID' \
--header 'Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN' \
--header 'Version: 2021-07-28' \
--header 'Accept: application/json'If it worked, you get JSON with a pipelines array. Each pipeline has an id, a name and a stages list, and each stage has its own id. Copy the pipeline ID and the stage ID where new leads should land. Errors are covered in the troubleshooting table below.
Headers for every GoHighLevel API v2 request
Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN
Version: 2021-07-28
Accept: application/json
Content-Type: application/json
Send Content-Type on requests that have a JSON body (POST, PUT). Base URL: https://services.leadconnectorhq.com
Which Version Header to Send
Every request needs a Version header. HighLevel’s Private Integration examples use 2021-07-28, which its versioning page still lists as supported, so this guide uses it everywhere. A newer v3 arrived on June 11, 2026, with availability varying by endpoint. If you switch, switch every request, because some field names differ.
Step 4: Add the Token to n8n
- In your workflow, add an HTTP Request node.
- Set Authentication to Generic Credential Type and Generic Auth Type to Bearer Auth.
- Create a new credential, paste the token into Bearer Token, and name the credential after the client, for example “GHL – Acme Plumbing”. Save.
- Turn on Send Headers and add
Version=2021-07-28andAccept=application/json.
On older n8n versions without Bearer Auth, choose Header Auth instead, with Name Authorization and Value Bearer YOUR_PRIVATE_INTEGRATION_TOKEN (note the space). n8n’s HTTP Request credentials page confirms both send the same header.
Using Import cURL? It brings the token in as a plain header parameter. Delete that header after importing and select your credential instead.
Why Not the Built-in HighLevel Node?
n8n’s HighLevel credentials page offers an API key (API v1, deprecated) or OAuth2, which means creating your own app in a HighLevel developer account and pasting its client ID and secret into n8n. There is no field for a Private Integration token, and forum users report errors saving the OAuth2 credential. The HTTP Request node is quicker to set up and can call any endpoint.
Recipe 1: Upsert a Contact From an n8n Webhook
A website form posts to n8n, and n8n creates the contact in GoHighLevel or updates it if the email or phone already exists, following the sub-account’s “Allow Duplicate Contact” setting in Business Profile.
- Add a Webhook node. Set HTTP Method to POST, Path to
ghl-new-leadand Respond to Immediately. - Click Listen for test event. The test URL listens for 120 seconds.
- Send a test lead from your terminal:
curl --request POST \
--url 'https://YOUR-N8N-DOMAIN/webhook-test/ghl-new-lead' \
--header 'Content-Type: application/json' \
--data '{"first_name":"Test","last_name":"Lead","email":"test.lead@example.com","phone":"+14155550123"}'The Webhook node should show one item with the form fields under body, so the email is $json.body.email. Add the HTTP Request node after it:
n8n HTTP Request node — Upsert contact
Node name: Upsert contact
Method: POST
URL: https://services.leadconnectorhq.com/contacts/upsert
Authentication: Generic Credential Type, Bearer Auth, your GHL credential
Send Headers: on — Version = 2021-07-28, Accept = application/json
Send Body: on — Body Content Type: JSON, Specify Body: Using JSON (Expression mode)
JSON body — Upsert contact
{
"locationId": "YOUR_LOCATION_ID",
"firstName": "{{ $json.body.first_name }}",
"lastName": "{{ $json.body.last_name }}",
"email": "{{ $json.body.email }}",
"phone": "{{ $json.body.phone }}",
"source": "n8n webhook"
}To test the same call without n8n, run this in your terminal:
curl --request POST \
--url 'https://services.leadconnectorhq.com/contacts/upsert' \
--header 'Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN' \
--header 'Version: 2021-07-28' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{"locationId":"YOUR_LOCATION_ID","firstName":"Test","lastName":"Lead","email":"test.lead@example.com","phone":"+14155550123","source":"n8n test"}'Success is status 201 with "new": true and a contact object holding the new id. Run it again with duplicates turned off and you get "new": false. The Upsert Contact reference lists every field, including customFields.
- Leave
tagsout of upsert. When upsert updates an existing contact, thetagslist replaces all of the contact’s tags, and an empty array removes them. Use Add Tags (Recipe 2) instead. - Send phones in E.164 format, such as
+14155550123. A number without a country code is read using thecountryyou send, then the location’s country, then US.
If a field can contain double quotes, such as a message box, write it as {{ JSON.stringify($json.body.message) }} without the surrounding quotes so the JSON stays valid.
Recipe 2: Add Tags and Create an Opportunity
Add a second HTTP Request node right after Upsert contact. Its input is the upsert response, so the contact ID is $json.contact.id.
n8n HTTP Request node — Add tags
Method: POST
URL: https://services.leadconnectorhq.com/contacts/{{ $json.contact.id }}/tags
Authentication, headers and body type: same as Upsert contact
{
"tags": ["n8n-lead", "website-form"]
}The curl version, run from your terminal with a real contact ID:
curl --request POST \
--url 'https://services.leadconnectorhq.com/contacts/YOUR_CONTACT_ID/tags' \
--header 'Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN' \
--header 'Version: 2021-07-28' \
--header 'Content-Type: application/json' \
--data '{"tags":["n8n-lead","website-form"]}'Success is status 201 with tags (every tag on the contact now) and tagsAdded (only the new ones). HighLevel saves tags in lowercase and creates any tag that does not exist yet.
Check tag triggers first. If a client workflow starts on “tag added”, this call will start it. Use a tag name no live workflow listens for until you are ready.
Next, add the opportunity node with the same settings and the URL https://services.leadconnectorhq.com/opportunities/upsert. It needs the pipeline ID and stage ID from Step 3. Its input is now the Add Tags response, so it reads the contact ID from the Upsert contact node, and the first name from the trigger node (named Webhook by default).
JSON body — Upsert opportunity
{
"locationId": "YOUR_LOCATION_ID",
"pipelineId": "YOUR_PIPELINE_ID",
"pipelineStageId": "YOUR_STAGE_ID",
"contactId": "{{ $('Upsert contact').item.json.contact.id }}",
"name": "{{ $('Webhook').item.json.body.first_name }} - website enquiry",
"status": "open",
"monetaryValue": 500
}It returns 201 either way: "new": true when it created an opportunity, false when it updated the contact’s latest opportunity in that pipeline, so reruns are safe. Plain POST /opportunities/ takes the same body but, unless duplicates are allowed, returns 400 OPPORTUNITY_NO_DUPLICATE for a second deal in the same pipeline.
Recipe 3: Send GoHighLevel Events to n8n
The other direction needs no token. A GoHighLevel workflow posts to an n8n Webhook URL whenever its trigger fires, for example “Contact Tag Added” or “Appointment Booked”.
- In n8n, add a Webhook node with HTTP Method POST and a path such as
from-ghl. Click Listen for test event and copy the test URL. - In the sub-account, open the Automation area, create or edit a workflow, and set its trigger.
- Click +, search for
webhookand choose Webhook. Leave Method on POST and paste the n8n URL. - Under Custom Data, click + Add item and add the key
contact_idwith the value{{contact.id}}, so n8n can call the API back for this contact. - Click Save Action, then Test Workflow, pick a test contact and run it within the 120-second listening window.
HighLevel’s outbound Webhook article says the payload always carries the contact’s standard and custom fields, such as first_name, email, phone and tags, plus a location object with the sub-account id. Appointment or opportunity data appears only when the trigger relates to that object. In n8n the fields arrive under $json.body; check the test output to see where your custom data key landed.
To go live, copy the n8n Production URL into the GoHighLevel action, publish the n8n workflow, then publish the GoHighLevel workflow. The production URL only answers while the n8n workflow is published.
| GoHighLevel action | What it sends | Securing it in n8n | Cost |
|---|---|---|---|
| Webhook | Fixed payload: contact, location and trigger data, plus your custom data | Long random path, plus a secret custom data key checked by an IF node | Not listed as a premium action |
| Custom Webhook | Your own method, headers, auth and raw JSON body | Add a header in GoHighLevel and turn on Header Auth on the n8n Webhook node | LC Premium action: 100 free executions per sub-account, then usage charges |
Rate Limits and Bulk Jobs
HighLevel’s rate limits page sets defaults of 100 requests per 10 seconds (burst) and 200,000 requests per 24 hours (daily). For Private Integration tokens, the burst limit counts per integration per location, while every Private Integration on the same sub-account shares one daily counter.
Responses carry X-RateLimit-Remaining and related headers, but a 429 has no Retry-After: after a burst-limit 429, wait the full 10-second window. For imports and backfills, set these on the HTTP Request node:
n8n settings for bulk GoHighLevel calls
Add Option, Batching: Items per Batch 5, Batch Interval (ms) 1000 (about 50 requests per 10 seconds)
Settings tab: Retry On Fail on, Max Tries 3, Wait Between Tries (ms) 10000
Troubleshooting: Errors and Fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 “Invalid JWT” | Users report this when sending the old location API key to API v2 | Use a Private Integration token |
| 401 “The token is not authorized for this scope.” | The Private Integration lacks a scope the endpoint needs | Edit the integration and add the scope; the token stays the same |
| 401 mentioning the Version header | Header missing or misspelled | Send Version: 2021-07-28 on every request |
| 401 “Token’s user type mismatch!” | An agency token on a sub-account endpoint | Create the Private Integration inside the sub-account |
| 401 on every call from the start | Token sent without “Bearer “, or in a custom header name | Use a Bearer Auth credential so n8n builds the header |
| 401 after weeks of working | Token rotated (the old one expires 7 days later) or the integration was deleted | Paste the current token into the n8n credential |
| 403 “The token does not have access to this location.” | locationId belongs to another sub-account |
Copy the Location ID from the same sub-account’s Business Profile |
| 400 or 422 | Missing locationId, wrong field names or invalid JSON |
Compare the body with the endpoint reference |
| 404 | Wrong base URL, such as rest.gohighlevel.com/v1 or an extra /v2/ in the path, or a wrong ID |
Use https://services.leadconnectorhq.com plus the documented path |
| 429 | Burst or daily limit reached | Batching and Retry On Fail as above |
| GoHighLevel test runs but n8n shows nothing | Test URL stopped listening, or production workflow not published | Click Listen again, or publish and use the Production URL |
n8n shows a localhost webhook URL |
Self-hosted n8n behind a proxy without its public URL set | Set N8N_WEBHOOK_URL (WEBHOOK_URL before n8n 2.35.0) |
Keep Client Tokens Safe
- Store tokens in n8n credentials, never in node parameters, Code nodes or Set nodes, where anyone who opens or copies the workflow can read them.
- One token per tool per sub-account. HighLevel recommends a separate Private Integration for each tool, so a leak means rotating one token, not every connection.
- Least scopes. Add a scope when a workflow needs it; editing scopes does not change the token.
- Rotate every 90 days, as HighLevel recommends. “Rotate and expire this token later” keeps the old token working for 7 days; if a token leaks, use “Rotate and expire this token now”.
- When a project ends, delete the Private Integration and the n8n credential.
Where to Run n8n for GoHighLevel Webhooks
GoHighLevel must reach your n8n Webhook URL over public HTTPS, which n8n Cloud handles for you. To self-host, our n8n with PostgreSQL Docker guide covers a production setup, and Railway runs n8n from a template. If you host there, read how to update n8n on Railway before your first upgrade. Building on your laptop first? Test webhooks locally with Cloudflare Tunnels so GoHighLevel can reach it.
Frequently Asked Questions
How do I get a GoHighLevel API key?
For new integrations, you create a Private Integration token instead of an API key. Open the sub-account’s Settings, then Private Integrations, create one with the scopes you need, and copy the token once. The old location API key in Business Profile only works with API v1, which reached end-of-support on December 31, 2025.
Can n8n’s HighLevel node use a Private Integration token?
No, the built-in HighLevel node only offers an API v1 key or OAuth2 through your own Marketplace app. To use a Private Integration token, call the API from the HTTP Request node with a Bearer Auth or Header Auth credential. You can mix both approaches in one workflow if you already have the OAuth2 app set up.
Does the GoHighLevel Starter plan include API access?
Yes, according to HighLevel’s help center, Starter includes OAuth 2.0 and Private Integration tokens with standard endpoint access. The contact, tag and opportunity calls in this guide are standard endpoints. A few endpoints, such as creating sub-accounts through the API, require the Founder plan.
Does a Private Integration token expire?
No, it stays valid until you rotate or delete it. That is different from OAuth access tokens, which expire daily. HighLevel recommends rotating every 90 days; a scheduled rotation keeps the old token working for 7 days, so you have time to update the n8n credential.
Next Steps
Create the Private Integration in a test sub-account, run the Step 3 curl call, then build Recipe 1 and watch the contact appear. Once all three recipes work, keep them as a starting workflow for each new client. To turn this into paid work, read how to become a GoHighLevel freelancer.

