English
HubSpot
Your HubSpot contacts, companies and deals — to record an email sender, attach a note and create the follow-up task.
A HubSpot connection lets the HubSpot node create or update contacts, companies and deals, add notes and follow-up tasks to them, and search the CRM; it lets the New in HubSpot trigger react to creations.
The connection holds a HubSpot private app token. It is encrypted at rest, applied by the server at call time, and never appears in a workflow.
At a glance
- Identifier:
hubspot - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: API key or token
- Credential type:
service:hubspot - Official API documentation: https://developers.hubspot.com/docs/api-reference/latest/crm/understanding-the-crm
- API base URL:
https://api.hubapi.com - Rate limit applied by Loop & Roll: 100 requests per 10 seconds and per connection; up to 3 attempts on a 429 or a 5xx
- Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- In HubSpot (as a super admin), open “Settings” → “Integrations” → “Private apps”, then “Create a private app”.
- In the “Scopes” tab, tick read and write for contacts, companies and deals (crm.objects.contacts, crm.objects.companies, crm.objects.deals) and read for owners (crm.objects.owners.read).
- Create the app, open the “Access token” tab, click “Show token” and paste it below.
Connection fields
| Field | Kind | Required | Notes |
|---|---|---|---|
Private app access token (token) | Secret — never shown again | Yes | It starts with “pat-”. It acts with the scopes ticked in the private app, for the whole HubSpot account. |
Before you start
- Only a super admin of the HubSpot account can create a private app.
- The token acts for the whole account, with the scopes ticked in the app: the connection can do what the scopes allow, whoever created it.
Permissions
Tick in the private app’s Scopes tab:
| Scope | For |
|---|---|
crm.objects.contacts.read and .write | Contacts: find, create, update; notes and tasks on a contact. |
crm.objects.companies.read and .write | Companies. |
crm.objects.deals.read and .write | Deals, and the list of pipelines and stages. |
crm.objects.owners.read | The Owner list. |
Add the connection
- In HubSpot, open Settings → Integrations → Private apps, then Create a private app. Name it, tick the scopes above and create it.
- In the Access token tab, click Show token and copy it (it starts with
pat-). - In Loop & Roll, open Connections, find the HubSpot card under Third-party services and click Connect. Paste the token and create the connection.
- Click Configure then Test connection. The test calls
GET /account-info/v3/detailsand shows the HubSpot portal ID.
Webhooks
HubSpot webhooks are reserved for public apps. The New in HubSpot trigger therefore works by regular checks (polling), with nothing to set up in HubSpot.
Common errors
| Message or code | Cause | What to do |
|---|---|---|
Test: “the key is refused by the service” (integration.unauthorized) | Token revoked, rotated or mis-copied. | Paste the private app’s current token in Configure. |
integration.unauthorized on a single action | Missing scope (for example deal write). | Add the scope to the private app; the token does not change. |
integration.rejected | HubSpot refused the request: unknown property, stage from another pipeline, invalid value. | Fix the node settings. |
integration.rate_limited | 429 after retries. Loop & Roll sends at most 100 requests per 10 seconds per connection (the Free and Starter plan limit). | Temporary: the engine resumes the step later. |
Nodes that use this connection
- New in HubSpot —
trigger.hubspot - HubSpot —
hubspot.api