HubSpot
Create, update, look up and search contacts, companies and deals in HubSpot CRM.
| Slug | hubspot |
| Base URL | https://api.hubapi.com |
| Auth options | Sign in with HubSpot, Service key or private app token |
| Test connection | GET /crm/objects/2026-09/contacts?limit=1 |
1. Choose how to connect
- Sign in with HubSpot is one click: you approve on HubSpot's consent page and you're done. It's only shown when Blokkio offers one-click sign-in for this app; otherwise use the token option below.
- Service key or private app token: in HubSpot open Settings → Integrations → Service Keys and create a key
with the scopes
crm.objects.contacts.read/write,crm.objects.companies.read/writeandcrm.objects.deals.read/write. Copy the key. A token of an existing legacy private app (pat-…) works too; HubSpot no longer lets you create new private apps.
2. Create the connection
- In Blokkio, go to Apps and open HubSpot.
- Click Connect on the option you want. For a token, paste it into Access token (or click Use secret) and click Create.
- Click Test connection. It reads one contact (
GET /crm/objects/2026-09/contacts?limit=1).
Properties
HubSpot fields are properties with internal names: email, firstname, lastname, phone, company,
lifecyclestage for contacts; name, domain for companies; dealname, amount, pipeline, dealstage,
closedate for deals. Find the names (including your custom properties) under Settings → Data management →
Properties. Properties is a JSON object:
{ "email": "ada@example.com", "firstname": "Ada", "lifecyclestage": "lead" }
For deals, pipeline and dealstage take internal ids (default, appointmentscheduled…), shown in the
pipeline settings.
Finding records
- Get contact / Update contact with Look up by = Email take an email address instead of the record id.
- Search takes free Text, Filters or both. Filters are groups of conditions:
[{ "filters": [{ "propertyName": "email", "operator": "EQ", "value": "ada@example.com" }] }]. Conditions in a group must all match; any group can match. Results come 100 at a time (up to 200); passpaging.next.afterof the result as Page after for the next page.
Actions
Use them with the App Action node. Lists return { items, count }; actions that read
every page return { items, pages } (turn off Fetch all pages or lower Max pages in the node to read less).
| Action | Key | What it does | Inputs (required) |
|---|---|---|---|
| Create contact | create_contact | Properties, Associations | |
| Update contact | update_contact | Only the properties you send change. | Contact ID, Look up by, Properties |
| Get contact | get_contact | Contact ID, Look up by, Properties to return | |
| Search contacts | search_contacts | Contact records by text or property filters. | Text, Filters, Properties to return, Sort, How many, Page after |
| Create company | create_company | Properties, Associations | |
| Update company | update_company | Only the properties you send change. | Company ID, Properties |
| Get company | get_company | Company ID, Properties to return | |
| Search companies | search_companies | Company records by text or property filters. | Text, Filters, Properties to return, Sort, How many, Page after |
| Create deal | create_deal | Properties, Associations | |
| Update deal | update_deal | Only the properties you send change. | Deal ID, Properties |
| Get deal | get_deal | Deal ID, Properties to return | |
| Search deals | search_deals | Deal records by text or property filters. | Text, Filters, Properties to return, Sort, How many, Page after |
Triggers
Use them with the App Trigger node. A trigger checks the app at its polling interval (the shortest allowed depends on your plan, see Plans and limits) and starts one run per new item, oldest first. The first check after you publish only records what already exists, so only items created after that start runs. Each run gets the item as $trigger (for example {{ $trigger.id }}).
| Trigger | Key | What starts a run | Inputs (required) | Output |
|---|---|---|---|---|
| New contact | new_contact | Contacts by create date, newest first. | — | id, createdAt, properties.email, properties.firstname, properties.lastname, … |
Troubleshooting
| Message | What to do |
|---|---|
HTTP 401 | The key/token is wrong or was rotated. |
HTTP 403 … MISSING_SCOPES | Add the read/write scope for that object to the key. |
HTTP 409 … Contact already exists | Use Update contact with Look up by Email, or search first. |
HTTP 400 … Property values were not valid | A property name or option value is wrong; use internal names and option values. |