π Quickstart
Connect to Hubspot with Nango and see data flow in 2 minutes.Create the integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Hubspot.
Authorize Hubspot
Go to Connections -> Add Test Connection -> Authorize, then log in to Hubspot. Later, youβll let your users do the same directly from your app.
Call the Hubspot API
Letβs make your first request to the Hubspot API (fetch a list of contacts). Replace the placeholders below with your secret key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.β
Youβre connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.
π Hubspot Integration Guides
Nango maintained guides for common use cases.- How to register your own Hubspot OAuth app
Register an OAuth app with Hubspot and obtain credentials to connect it to Nango
π§© Pre-built syncs & actions for Hubspot
Enable them in your dashboard. Extend and customize to fit your needs.Account
| Function name | Description | Type | Source code |
|---|---|---|---|
fetch-account-information | Retrieve portal account details, currency settings, timezone, and hosting region | Action | π Github |
Associations
| Function name | Description | Type | Source code |
|---|---|---|---|
create-association | Associate two records together | Action | π Github |
CRM
| Function name | Description | Type | Source code |
|---|---|---|---|
fetch-custom-objects | Retrieve HubSpot custom object schemas for enterprise accounts | Action | π Github |
fetch-properties | List CRM property metadata for a specified HubSpot object type | Action | π Github |
Companies
| Function name | Description | Type | Source code |
|---|---|---|---|
batch-create-companies | Create multiple companies at once | Action | π Github |
batch-update-companies | Update multiple companies at once | Action | π Github |
create-company | Create a company record | Action | π Github |
delete-company | Delete a company record | Action | π Github |
get-company | Get a company by ID | Action | π Github |
list-companies | List company records | Action | π Github |
search-companies | Search companies by criteria | Action | π Github |
update-company | Update a company record | Action | π Github |
sync-companies | Sync companies from HubSpot CRM | Sync | π Github |
Contacts
| Function name | Description | Type | Source code |
|---|---|---|---|
create-contact | Create a contact record | Action | π Github |
delete-contact | Delete a contact record | Action | π Github |
get-contact | Get a contact by ID | Action | π Github |
list-contacts | List contact records | Action | π Github |
update-contact | Update a contact record | Action | π Github |
sync-contacts | Sync contacts | Sync | π Github |
Deals
| Function name | Description | Type | Source code |
|---|---|---|---|
create-deal | Create a deal record in HubSpot | Action | π Github |
delete-deal | Delete a deal record | Action | π Github |
get-deal | Get a deal by ID | Action | π Github |
list-deals | List deal records from HubSpot CRM | Action | π Github |
search-deals | Search deals by criteria | Action | π Github |
update-deal | Update a deal record in HubSpot CRM | Action | π Github |
sync-deals | Sync deals with amount, close date, stage, owner, description, and associated companies and contacts | Sync | π Github |
Forms
| Function name | Description | Type | Source code |
|---|---|---|---|
list-forms | List forms | Action | π Github |
Marketing
| Function name | Description | Type | Source code |
|---|---|---|---|
get-marketing-email | Get a marketing email by ID | Action | π Github |
list-marketing-emails | List marketing emails | Action | π Github |
Marketing Emails
| Function name | Description | Type | Source code |
|---|---|---|---|
clone-marketing-email | Clone an existing marketing email | Action | π Github |
create-marketing-email | Create a marketing email in HubSpot | Action | π Github |
delete-marketing-email | Delete a marketing email | Action | π Github |
update-marketing-email | Update a marketing email | Action | π Github |
sync-marketing-emails | Sync marketing emails from HubSpot | Sync | π Github |
Notes
| Function name | Description | Type | Source code |
|---|---|---|---|
create-note | Create a HubSpot note with body, timestamp, owner, optional attachments, and an explicit association to a contact, company, deal, or ticket. | Action | π Github |
Owners
| Function name | Description | Type | Source code |
|---|---|---|---|
get-owner | Get an owner by ID | Action | π Github |
sync-owners | Sync HubSpot owners with names, email, user IDs, and archive status | Sync | π Github |
Pipelines
| Function name | Description | Type | Source code |
|---|---|---|---|
fetch-pipelines | List pipelines and stages for an object type, defaulting to deals | Action | π Github |
Products
| Function name | Description | Type | Source code |
|---|---|---|---|
sync-products | Sync product records with pricing, SKU, quantity, and billing details | Sync | π Github |
Properties
| Function name | Description | Type | Source code |
|---|---|---|---|
create-property | Create a custom CRM property for a specified HubSpot object type | Action | π Github |
Tasks
| Function name | Description | Type | Source code |
|---|---|---|---|
create-task | Create a HubSpot task with type, title, priority, assignee, due date, notes, and optional associations to contacts, companies, or deals | Action | π Github |
delete-task | Delete a HubSpot task by record ID | Action | π Github |
update-task | Update a HubSpot taskβs fields, owner, due date, and associations | Action | π Github |
sync-tasks | Sync tasks with type, title, priority, assignee, due date, notes, and related contacts, companies, and deals | Sync | π Github |
Tickets
| Function name | Description | Type | Source code |
|---|---|---|---|
create-ticket | Create a support ticket in HubSpot CRM | Action | π Github |
delete-ticket | Delete a support ticket | Action | π Github |
get-ticket | Get a ticket by ID | Action | π Github |
list-tickets | List support tickets | Action | π Github |
search-tickets | Search tickets by criteria | Action | π Github |
update-ticket | Update a support ticket | Action | π Github |
sync-tickets | Sync service tickets with subject, content, owner, pipeline, stage, category, and priority | Sync | π Github |
Users
| Function name | Description | Type | Source code |
|---|---|---|---|
change-user-role | Update a HubSpot userβs role and team assignments | Action | π Github |
create-user | Provision a HubSpot user with email, role, and team assignments | Action | π Github |
delete-user | Delete a HubSpot provisioned user by ID | Action | π Github |
fetch-roles | List available user roles for a HubSpot enterprise account | Action | π Github |
whoami | Retrieve the current authenticated HubSpot userβs ID and email | Action | π Github |
sync-users | Sync provisioned users with role IDs, primary team, and admin status | Sync | π Github |
Workflows
| Function name | Description | Type | Source code |
|---|---|---|---|
delete-a-workflow | Delete an automation workflow | Action | π Github |