Skip to main content

πŸš€ Quickstart

Connect to Hubspot with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Hubspot.
2

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.
3

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:
curl "https://api.nango.dev/proxy/crm/v3/objects/contacts?properties=email,phone" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

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. Official docs: Hubspot API docs

🧩 Pre-built syncs & actions for Hubspot

Enable them in your dashboard. Extend and customize to fit your needs.

Account

Function nameDescriptionTypeSource code
fetch-account-informationRetrieve portal account details, currency settings, timezone, and hosting regionActionπŸ”— Github

Associations

Function nameDescriptionTypeSource code
create-associationAssociate two records togetherActionπŸ”— Github

CRM

Function nameDescriptionTypeSource code
fetch-custom-objectsRetrieve HubSpot custom object schemas for enterprise accountsActionπŸ”— Github
fetch-propertiesList CRM property metadata for a specified HubSpot object typeActionπŸ”— Github

Companies

Function nameDescriptionTypeSource code
batch-create-companiesCreate multiple companies at onceActionπŸ”— Github
batch-update-companiesUpdate multiple companies at onceActionπŸ”— Github
create-companyCreate a company recordActionπŸ”— Github
delete-companyDelete a company recordActionπŸ”— Github
get-companyGet a company by IDActionπŸ”— Github
list-companiesList company recordsActionπŸ”— Github
search-companiesSearch companies by criteriaActionπŸ”— Github
update-companyUpdate a company recordActionπŸ”— Github
sync-companiesSync companies from HubSpot CRMSyncπŸ”— Github

Contacts

Function nameDescriptionTypeSource code
create-contactCreate a contact recordActionπŸ”— Github
delete-contactDelete a contact recordActionπŸ”— Github
get-contactGet a contact by IDActionπŸ”— Github
list-contactsList contact recordsActionπŸ”— Github
update-contactUpdate a contact recordActionπŸ”— Github
sync-contactsSync contactsSyncπŸ”— Github

Deals

Function nameDescriptionTypeSource code
create-dealCreate a deal record in HubSpotActionπŸ”— Github
delete-dealDelete a deal recordActionπŸ”— Github
get-dealGet a deal by IDActionπŸ”— Github
list-dealsList deal records from HubSpot CRMActionπŸ”— Github
search-dealsSearch deals by criteriaActionπŸ”— Github
update-dealUpdate a deal record in HubSpot CRMActionπŸ”— Github
sync-dealsSync deals with amount, close date, stage, owner, description, and associated companies and contactsSyncπŸ”— Github

Forms

Function nameDescriptionTypeSource code
list-formsList formsActionπŸ”— Github

Marketing

Function nameDescriptionTypeSource code
get-marketing-emailGet a marketing email by IDActionπŸ”— Github
list-marketing-emailsList marketing emailsActionπŸ”— Github

Marketing Emails

Function nameDescriptionTypeSource code
clone-marketing-emailClone an existing marketing emailActionπŸ”— Github
create-marketing-emailCreate a marketing email in HubSpotActionπŸ”— Github
delete-marketing-emailDelete a marketing emailActionπŸ”— Github
update-marketing-emailUpdate a marketing emailActionπŸ”— Github
sync-marketing-emailsSync marketing emails from HubSpotSyncπŸ”— Github

Notes

Function nameDescriptionTypeSource code
create-noteCreate a HubSpot note with body, timestamp, owner, optional attachments, and an explicit association to a contact, company, deal, or ticket.ActionπŸ”— Github

Owners

Function nameDescriptionTypeSource code
get-ownerGet an owner by IDActionπŸ”— Github
sync-ownersSync HubSpot owners with names, email, user IDs, and archive statusSyncπŸ”— Github

Pipelines

Function nameDescriptionTypeSource code
fetch-pipelinesList pipelines and stages for an object type, defaulting to dealsActionπŸ”— Github

Products

Function nameDescriptionTypeSource code
sync-productsSync product records with pricing, SKU, quantity, and billing detailsSyncπŸ”— Github

Properties

Function nameDescriptionTypeSource code
create-propertyCreate a custom CRM property for a specified HubSpot object typeActionπŸ”— Github

Tasks

Function nameDescriptionTypeSource code
create-taskCreate a HubSpot task with type, title, priority, assignee, due date, notes, and optional associations to contacts, companies, or dealsActionπŸ”— Github
delete-taskDelete a HubSpot task by record IDActionπŸ”— Github
update-taskUpdate a HubSpot task’s fields, owner, due date, and associationsActionπŸ”— Github
sync-tasksSync tasks with type, title, priority, assignee, due date, notes, and related contacts, companies, and dealsSyncπŸ”— Github

Tickets

Function nameDescriptionTypeSource code
create-ticketCreate a support ticket in HubSpot CRMActionπŸ”— Github
delete-ticketDelete a support ticketActionπŸ”— Github
get-ticketGet a ticket by IDActionπŸ”— Github
list-ticketsList support ticketsActionπŸ”— Github
search-ticketsSearch tickets by criteriaActionπŸ”— Github
update-ticketUpdate a support ticketActionπŸ”— Github
sync-ticketsSync service tickets with subject, content, owner, pipeline, stage, category, and prioritySyncπŸ”— Github

Users

Function nameDescriptionTypeSource code
change-user-roleUpdate a HubSpot user’s role and team assignmentsActionπŸ”— Github
create-userProvision a HubSpot user with email, role, and team assignmentsActionπŸ”— Github
delete-userDelete a HubSpot provisioned user by IDActionπŸ”— Github
fetch-rolesList available user roles for a HubSpot enterprise accountActionπŸ”— Github
whoamiRetrieve the current authenticated HubSpot user’s ID and emailActionπŸ”— Github
sync-usersSync provisioned users with role IDs, primary team, and admin statusSyncπŸ”— Github

Workflows

Function nameDescriptionTypeSource code
delete-a-workflowDelete an automation workflowActionπŸ”— Github