HubSpot
CRM integration for contacts, companies, deals, and marketing automation
HubSpot
Connect to HubSpot for CRM automation including contacts, companies, deals, tickets, and engagement activities.
Overview
HubSpot is an all-in-one CRM platform. The integration supports:
- Contacts - Individual contact records
- Companies - Organization records
- Deals - Sales pipeline and deals
- Tickets - Customer support tickets
- Associations - Relationships between objects
- Engagements - Notes, tasks, and activities
- Custom Objects - Any CRM object type
Prerequisites
- HubSpot account (Free, Starter, Professional, or Enterprise)
- Private app with required scopes
- API access enabled
Authentication
HubSpot uses OAuth 2.0 for authentication via Nango.
Required Scopes
| Scope | Description |
|---|---|
crm.objects.contacts.read/write | Contact access |
crm.objects.companies.read/write | Company access |
crm.objects.deals.read/write | Deal access |
crm.objects.owners.read | Owner access |
Available Actions
Contact Actions
getContact
Get a contact by ID.
createContact
Create a new contact.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
email | string | No | Email address |
firstName | string | No | First name |
lastName | string | No | Last name |
phone | string | No | Phone number |
company | string | No | Company name |
website | string | No | Website URL |
jobTitle | string | No | Job title |
lifecycleStage | string | No | Lifecycle stage |
leadStatus | string | No | Lead status |
customProperties | object | No | Custom property values |
updateContact
Update an existing contact.
deleteContact
Delete a contact.
searchContacts
Search contacts with filters.
Company Actions
getCompany
Get a company by ID.
createCompany
Create a new company.
updateCompany / deleteCompany
searchCompanies
Deal Actions
getDeal
Get a deal by ID.
createDeal
Create a new deal.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
dealName | string | Yes | Deal name |
dealStage | string | Yes | Pipeline stage ID |
pipeline | string | No | Pipeline ID (default: default) |
amount | number | No | Deal value |
closeDate | string | No | Expected close date |
dealType | string | No | Deal type |
description | string | No | Description |
priority | string | No | Priority level |
associations | array | No | Associated records |
updateDeal / deleteDeal
searchDeals
Ticket Actions
getTicket
Get a ticket by ID.
createTicket
Create a support ticket.
updateTicket / deleteTicket
Association Actions
createAssociation
Create a relationship between objects.
getAssociations
Get associations for an object.
deleteAssociation
Engagement Actions
createNote
Create a note on a record.
createTask
Create a task.
updateTask
Owner Actions
getOwner
Get owner details.
listOwners
List all owners.
Generic Object Actions
Work with any HubSpot CRM object.
getObject / createObject / updateObject / deleteObject
searchObjects
Search Operators
| Operator | Description |
|---|---|
EQ | Equal to |
NEQ | Not equal to |
LT | Less than |
LTE | Less than or equal |
GT | Greater than |
GTE | Greater than or equal |
BETWEEN | Between two values |
IN | In list of values |
NOT_IN | Not in list |
HAS_PROPERTY | Property exists |
NOT_HAS_PROPERTY | Property doesn't exist |
CONTAINS_TOKEN | Contains text |
Webhook Triggers
HubSpot webhooks trigger workflows on CRM changes.
Event Types:
contact.creation,contact.deletion,contact.propertyChangecompany.creation,company.deletion,company.propertyChangedeal.creation,deal.deletion,deal.propertyChange
Example Workflow
Lead to deal workflow:
Rate Limits
| Limit | Value |
|---|---|
| API calls per day | 250,000 (Professional) |
| API calls per second | 150 |
| Batch operations | 100 records per batch |
| Search results | 10,000 max |
Troubleshooting
Common Errors
| Error | Cause | Solution |
|---|---|---|
PROPERTY_DOESNT_EXIST | Invalid property name | Check property API name |
CONFLICT | Duplicate record | Use search to find existing |
RATE_LIMIT | Too many requests | Implement backoff |
OBJECT_NOT_FOUND | Invalid object ID | Verify ID exists |