HubSpot logo

HubSpot CRM API integration

Build HubSpot CRM and Lead integrations in minutes, not months. One API to sync permissioned crm data with HubSpot and 20+ other apps.

8+ data models
SOC 2 certified
Free trial
Real-time webhooks

Trusted by fast-moving product & engineering teams

JobNimbus
Blue Zinc
Drata
Octa
Nmbrs
Integration Guide

How to integrate HubSpot API in 3 steps

Build a production-ready HubSpot CRM API integration in minutes, not months. No OAuth headaches, no maintenance burden.

Step 01

Create your Apideck account

Sign up for free and enable HubSpot in your Apideck dashboard. Configure which crm data your app needs access to.

  • Start your free trial
  • 2,500 API calls included
  • No credit card required
Step 02

Connect HubSpot via Vault

Use our pre-built Vault component to let your users securely connect their HubSpot account. We handle OAuth, token refresh, and credential storage.

  • White-label auth UI
  • Automatic token refresh
  • SOC 2 certified storage
Step 03

Start syncing crm data

Make API calls to read and write crm data from HubSpot. Use the same code to connect 200+ other apps.

  • Normalized data models
  • Real-time webhooks
  • Full CRUD support
Start HubSpot integration

Free trial • No credit card required • Setup in under 5 minutes

Code Example

HubSpot API integration code

Integrate HubSpot with just a few lines of code. Our unified CRM API normalizes data across 200+ integrations, so you write once and connect everywhere.

  • Normalized responses — same data structure for all crm apps
  • Official SDKs — Node.js, Python, and more with TypeScript support
  • Full documentation — interactive API reference with HubSpot-specific examples
View HubSpot API documentation →
import { Apideck } from '@apideck/node'

const apideck = new Apideck({
  apiKey: process.env.APIDECK_API_KEY,
  appId: process.env.APIDECK_APP_ID,
  consumerId: 'user-123'
})

// List contacts from HubSpot
const { data } = await apideck.crm.contactsAll({
  serviceId: 'hubspot'
})

console.log(`Found ${data.length} contacts`)

Why integrate HubSpot with Apideck?

Build a production-ready HubSpot integration with enterprise-grade reliability

Ship HubSpot integration fast

Go live with HubSpot in days, not months. Our unified CRM API handles authentication, data normalization, and error handling so your team can focus on building features.

8+ HubSpot data models

Access 8+ data models for HubSpot including contacts, leads and companies. Read and write data through a single standardized API.

Real-time webhook coverage

Keep your product synchronized with HubSpot using webhooks. Receive push updates for invoices, customers, payments, and more without polling.

API Resources

Push and pull HubSpot data

Use our Unify API to get real-time data from HubSpot

Technical Specifications

HubSpot API integration details

Everything you need to know about integrating HubSpot through our unified CRM API.

Authentication

OAuth 2.0

Secure token-based authentication

Data Models

8+ resources

Access 8+ normalized data models

Webhooks

Native webhooks

Real-time data sync on changes

Security

SOC 2 Type II

Enterprise-grade security certified

Token Management

Automatic refresh

Never worry about expired tokens

API Format

REST + JSON

Standard REST API with JSON responses

HubSpot direct API vs Apideck unified API

FeatureDirect HubSpot APIApideck Unified API
OAuth implementationBuild from scratchHandled by Vault
Token refreshManual handlingAutomatic
Data normalizationHubSpot format onlyNormalized across 200+ apps
Error handlingPlatform-specificUnified error codes
Rate limit managementDIY implementationBuilt-in throttling
MaintenanceOngoing updates requiredWe handle API changes
Additional integrationsSeparate work eachSame code, 200+ apps

HubSpot Integration FAQ

Common questions about integrating HubSpot with your application

HubSpot SDKs

Build HubSpot integrations in your favorite language with our official SDKs.

Launch accounting integrations in weeks, not months

Sign Up