HubSpot#
You can use these credentials to authenticate the following nodes with HubSpot.
Prerequisites#
Create a HubSpot account.
Using OAuth#
Note for n8n Cloud users
You'll only need to enter the Credentials Name and click on the circle button in the OAuth section to connect your HubSpot account to n8n.
⚠ HubSpot old accounts
Some HubSpot accounts don't have access to all the scopes. HubSpot is migrating accounts gradually. If you can't' find all the scopes in your current HubSpot developer account, try creating a fresh developer account.
- Access your HubSpot Developer Home.
- Click on the Manage apps button.
- Click on the Create app button in the top right.
- Specify an app name in the Public app name field.
- Click on the 'Auth' tab.
- Use the provided Client ID and the Client secret with your HubSpot OAuth2 API credentials in n8n.
- If you are using the HubSpot Trigger node, copy the App ID along with the information in the previous step.
-
Copy your OAuth Callback URL from the 'Create New Credentials' screen in n8n and paste in the Redirect URL section.
Exact scope needed
If you grant access to more or less scopes than listed below, this might cause an issue with the authentication step. Make sure to only include what is listed below.
-
In the Scopes section, select the following scopes in the Find a scope search box:
- Trigger node:
- oauth
- crm.objects.contacts (read),
- crm.schemas.contacts (read),
- crm.objects.companies (read),
- crm.schemas.companies (read),
- crm.objects.deals (read),
- crm.schemas.deals (read),
- Regular node:
- oauth
- crm.schemas.deals (read),
- crm.objects.owners (read),
- crm.objects.contacts (write),
- crm.objects.companies (write),
- crm.objects.companies (read),
- crm.objects.deals (read),
- crm.schemas.contacts (read),
- crm.objects.deals (write),
- crm.objects.contacts (read),
- crm.schemas.companies (read),
- forms,
- tickets,
- Trigger node:
- Click on the Save button to save your settings in HubSpot.
- Back in n8n, click on the circle button in the OAuth section to connect your HubSpot account to n8n.
- Click the Save button to save your credentials.
Using API key#
- Access your HubSpot dashboard.
- Click on the gear icon on the top right.
- Click on Integrations and then API key.
- Click on the Create key button.
- Use the key with HubSpot node credentials in n8n.
Using APP Token#
- Follow the instructions in the Private Apps Documentation to get your access token.
- Set the access token as the key in your HubSpot credentials in n8n.
Using Developer API Key (for HubSpot Trigger node)#
- Access your HubSpot Developer Home.
- Click on Apps in the top bar.
- Click on the Get HubSpot API key button.
- Click on the Show key button.
- Use the displayed Developer API key with your HubSpot Trigger node credentials in n8n.