Guide · Integrations & API

Agency vs. Location (Sub-Account) Tokens in GoHighLevel

HighLevel's API has two levels of access: the agency and the individual sub-account (location). Picking the wrong one is the top cause of 401 and 403 errors. Here's how to choose.

What you'll do

  • A location (sub-account) token works on one sub-account's data, such as contacts and appointments.
  • An agency token works on agency-level objects, such as sub-accounts and users.
  • Private Integration tokens can be created at either level; OAuth apps issue tokens per installation.
  • Match the token level to the endpoint you call, and include the location ID where required.

Use a location (sub-account) token when you work with one business's data: contacts, conversations, opportunities, calendars, invoices. Use an agency token when you manage the agency itself: creating or updating sub-accounts, managing users, agency-level settings. Create the token at the same level as the data you're touching, and you'll avoid most authorization errors.

HighLevel's API documentation and the legacy v1 docs both describe this split. Agency keys manage agency objects such as sub-accounts and users; location keys manage sub-account objects such as contacts and appointments.

Before you start

  • API access on your plan ($297 Unlimited and above as of late 2026).
  • Admin access at the level where you'll create the token.
  • A clear list of endpoints your integration calls. The endpoint docs tell you which token type each accepts.

The two levels side by side

Agency tokenLocation (sub-account) token
Created inAgency view, Settings, Private IntegrationsSub-account Settings, Private Integrations
Typical usesCreate sub-accounts, manage users, snapshots, agency reportingContacts, tags, opportunities, calendars, conversations, payments data
Scope of dataAgency-level objectsOne location only
Who should hold itAgency owner or technical leadThe tool connected to that client
Risk if leakedHigher: agency-wide managementLimited to one business (still serious)

Where OAuth fits

Private Integrations give you a static token at one level. Marketplace apps built with OAuth work differently: when an agency or sub-account installs your app, HighLevel issues access tokens for that installation. An app installed at agency level can obtain location-level tokens for the sub-accounts it's allowed to access, through the token exchange described in HighLevel's marketplace documentation. If you need one integration to serve many sub-accounts properly, that's usually the reason to build an app instead of collecting dozens of Private Integration tokens.

Decision steps

  1. List what the integration does. "Add new leads to the CRM" is location-level. "Spin up a sub-account when a client signs" is agency-level.
  2. Check each endpoint's docs for the token type and scope it requires.
  3. If everything is location-level, create a Private Integration inside that sub-account. One token per client sub-account keeps access isolated.
  4. If anything is agency-level, create an agency Private Integration for those calls, and keep location calls on location tokens.
  5. If you serve many sub-accounts with the same logic, consider an OAuth app installed at agency level.

Test it

  • Call a contacts endpoint with your location token and the matching location ID. Expect a 200.
  • Call the same endpoint with a different location's ID. Expect an error; that confirms isolation.
  • If you have an agency token, call an agency-level endpoint (such as listing sub-accounts) and confirm it works, then confirm it's not being used for routine contact writes.

Common mistakes

SymptomLikely cause
401 UnauthorizedToken missing, mistyped, revoked, or v1 key used on v2
403 ForbiddenWrong token level, missing scope, or endpoint not on your plan
Empty resultsWrong location ID; you're looking at another sub-account
Works in one client, fails in anotherToken created in the first sub-account only
  • Using one agency token for everything because it "seems more powerful". It's riskier and often doesn't work for location endpoints.
  • Reusing a client's location token in another client's automation. Data could land in the wrong CRM.
  • Forgetting the location ID parameter on endpoints that require it.

Naming and record-keeping

Agencies with many clients end up with many tokens. Keep a simple register (in your password manager notes or an internal doc without the token values): client, level, scopes, which tool uses it, date created, date last rotated. It turns "what will break if I revoke this?" into a ten-second answer.

What to build next

Frequently asked questions

Should I use an agency token or a location token for contacts?

For contacts, opportunities, calendars and other data inside one business, use a sub-account (location) token created in that sub-account. Agency tokens are for agency-level management.

Can one agency token access all my sub-accounts' contacts?

Don't assume so. Most sub-account data endpoints expect a location-level token. Marketplace apps can exchange an agency-level OAuth token for location tokens, but a Private Integration is created at one level.

What is the location ID?

It's the unique identifier of a sub-account. Many API v2 endpoints require it as a parameter. You can find it in the sub-account's settings or in the browser address bar while you're inside that sub-account.

Why do I get a 403 with a valid token?

Usually the token is the wrong level for the endpoint, lacks the needed scope, or your plan doesn't include that endpoint.