The error names the scope — read it
HubSpot does not make you guess here. A MISSING_SCOPES response carries a context object with a requiredScopes array listing exactly what the endpoint demanded and did not get. Most time lost on this error is lost because the HTTP client raised on the 403 and discarded the body before anything read it, leaving only "403 Forbidden" in the logs.
In n8n, turn on the setting that returns the error response as node output rather than failing the node, and log $json.error.context.requiredScopes. One execution then answers the question that otherwise takes an afternoon of toggling checkboxes.
HTTP/1.1 403 Forbidden
{
"status": "error",
"message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: ...",
"correlationId": "9c1d...",
"category": "MISSING_SCOPES",
"context": {
"requiredScopes": ["crm.objects.deals.write"]
}
}
# The fix is in HubSpot settings -> the private app -> Scopes.
# Not in the credential, not in the header, not in the token.
Check what the token actually carries
Before editing anything, confirm the token you are sending belongs to the portal you think it does and carries the scopes you think it does. HubSpot exposes a token-introspection route that answers both questions in one read-only request. It is the fastest way to detect the second most common cause of this error, which is a staging token deployed to production or the reverse — the scopes in the two portals' apps drift apart and only one of them has the write scope someone added last month.
curl https://api.hubapi.com/oauth/v1/access-tokens/pat-na1-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
{
"token": "pat-na1-...",
"hub_id": 12345678,
"app_id": 987654,
"scopes": [
"crm.objects.contacts.read",
"crm.objects.contacts.write",
"crm.schemas.contacts.read"
],
"token_type": "access"
}
# requiredScopes said crm.objects.deals.write.
# scopes has no deals entry at all -> that is the whole answer.
# hub_id not the portal you expected -> wrong token deployed.
The scope families, and the reads that writes still need
HubSpot's CRM scopes split three ways and integrations routinely grant only one of the three. crm.objects.{type}.read and .write cover record data. crm.schemas.{type}.read covers the property and object definitions — a workflow that resolves a custom property's internal name needs this even though it never writes anything. Associations need read access on both objects in the pair, not just the one you are writing from.
Webhook subscriptions have their own mapping: a deal.creation subscription requires crm.objects.deals.read, and ticket subscriptions require the tickets scope. A credential that reads contacts perfectly well cannot create a ticket webhook subscription, and the failure surfaces at subscription-creation time rather than at delivery time.
Endpoint to scope, for the calls that trip people up
| What the workflow does | Scope it needs |
|---|
| GET /crm/v3/objects/contacts | crm.objects.contacts.read |
| PATCH /crm/v3/objects/deals/{id} | crm.objects.deals.write |
| GET /crm/v3/properties/contacts | crm.schemas.contacts.read |
| PUT /crm/v4/objects/contact/{id}/associations/deal/{id} | read on contacts and on deals |
| Create a deal.creation webhook subscription | crm.objects.deals.read |
| Create a ticket.propertyChange subscription | tickets |
Why the smoke test passed and production failed
The standard verification after setting up a credential is a GET against a list endpoint. It passes on read scopes alone, which is exactly why this error so often appears hours later on the first write of a scheduled job rather than during setup.
Test the operations the workflow performs, not the operation that is easiest to test: one read, one create, one update, one association, and — if the workflow uses them — one search and one webhook subscription creation. Each exercises a different scope, and each can fail independently of the others.
One more case worth ruling out before blaming scopes: some scopes depend on the portal's subscription tier. A scope that is not available on the account's plan cannot be ticked in the app settings at all, so if the checkbox you need is absent rather than unticked, the answer is a HubSpot plan question rather than a configuration one.
Editing a private app's scopes does not invalidate its token. Add the scope and retry with the same credential — rotating the token here changes nothing and creates a second problem to debug.
Granting the minimum without causing this error monthly
The advice to grant only what you need is correct and, applied naively, produces a 403 every time someone adds a feature. The way to have both is to derive the scope list from the integration's actual calls rather than from a guess, and to record it alongside the workflow so the next change starts from a known list instead of from trial and error.
A practical method: run the workflow against a test portal with a token granted only read scopes, collect every MISSING_SCOPES response, and add exactly the scopes named in the requiredScopes arrays. Repeat until the run completes. What you are left with is the minimum set, derived empirically, with no guesswork and nothing granted speculatively.
Keep that list in the service inventory with the app's owner and portal, and re-derive it when the workflow changes materially. The alternative — granting a broad scope family once so this never comes up again — hands the token permissions that no code exercises, which is exactly the access that matters if the token ever leaks.
- Derive the scope list empirically from requiredScopes, not from documentation browsing.
- Record the final list with the app owner, portal and rotation date.
- Re-derive after any change that adds a new object type or operation.
- Avoid broad scope families granted "to be safe" — they are the ones that matter in a leak.
- Check whether a needed scope even exists on the portal's subscription tier before debugging further.
Where these facts come from