Can't connect n8n with HubSpot: "Authorization failed because the provided scopes are missing"
Hi community,
I'm trying to integrate HubSpot with n8n using OAuth2, but I keep getting this error, even though I've already added the scopes the platform requires:
"Couldn't complete the connection. Authorization failed because the provided scopes are missing [crm.schemas.companies.write, crm.schemas.contacts.write, crm.schemas.deals.write, crm.objects.leads.read, crm.objects.leads.write], which are required for the app to function. Please contact the app developer for assistance."
WHAT I'VE ALREADY DONE STEP BY STEP
Added the required scopes in the HubSpot app:
crm.schemas.companies.write
crm.schemas.contacts.write
crm.schemas.deals.write
crm.objects.leads.read
crm.objects.leads.write
Also added these additional ones (read, write, and some extras suggested by forums and documentation):
oauth
forms
tickets
crm.objects.companies.read
crm.objects.companies.write
crm.schemas.companies.read
crm.schemas.contacts.read
crm.objects.contacts.read
crm.objects.contacts.write
crm.objects.deals.read
crm.objects.deals.write
crm.schemas.deals.read
crm.objects.owners.read
crm.lists.write
Saved changes in the HubSpot app, closed and reopened the configuration to confirm the scopes were there.
Removed any previous connections ("Connected Apps") and started everything from scratch.
Verified the redirect URI: It's exactly the same in both n8n and HubSpot.
Recreated the HubSpot credential in n8n, pasting the same scopes.
Authorized the app from n8n using a HubSpot account with admin permissions.
Tested in different browsers, cleared cache/cookies, and also tried creating the app as a "Private App".
PROBLEM
Despite all of the above, I keep receiving the same missing scopes error and can't proceed with the integration. In the app configuration, all the scopes are already showing, but HubSpot/n8n still doesn't recognize them during authorization.
QUESTIONS FOR THE COMMUNITY
Has anyone successfully integrated n8n with HubSpot using these granular "write" and "leads" scopes?
Could this be a limitation based on HubSpot account type (I'm using [specify if it's free, starter, developer, etc.])?
Is there a hidden step to enable these scopes, or a known bug in n8n/HubSpot with these permissions?
Any tricks to force a scope refresh or clear the app cache in HubSpot?
Any suggestions, experiences, or solutions you have would be greatly appreciated. If you need screenshots of the configuration or more details, I can upload them.
Can't connect n8n with HubSpot: "Authorization failed because the provided scopes are missing"
I'm having the same issue, but I believe the problem is on the n8n end and it's since Hubspot deprecated their API key. The problem is that n8n is sending the wrong URL for authentication to Hubspot but there is no way to fix the URL on the n8n side.
You can tell this because when testing the URL that Hubspot provides in the Public App setup page, it works to open the authentication page. If we had a way to correct the URL on n8n, then this would be solved.
I understand that you are having some trouble integrating with the n8n integration using OAuth2. I'd like to tag in some Champions to see if they have experienced any similar errors when integrating apps.