CtrlK
BlogDocsLog inGet started
Tessl Logo

hubspot

HubSpot integration via Apideck's CRM unified API — same methods work across every connector in CRM, switch by changing `serviceId`. Use when the user wants to read, write, or search contacts, companies, leads, opportunities, activities, and pipelines in HubSpot. Routes through Apideck with serviceId "hubspot".

87

Quality

86%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

HubSpot (via Apideck)

Access HubSpot through Apideck's CRM unified API — one of 21 CRM connectors that share the same method surface. Code you write here ports to Odoo, Salesforce, Pipedrive and 17 other CRM connectors by changing a single serviceId string. Apideck handles auth, pagination, rate limiting, and retries so you don't write per-tenant HubSpot plumbing.

Quick facts

  • Apideck serviceId: hubspot
  • Unified API: CRM
  • Auth type: oauth2
  • HubSpot docs: https://developers.hubspot.com
  • Homepage: https://www.hubspot.com/

When to use this skill

Activate this skill when the user explicitly wants to work with HubSpot — for example, "pull contacts in HubSpot" or "sync leads in HubSpot". This skill teaches the agent:

  1. Which Apideck unified API covers HubSpot (CRM)
  2. The correct serviceId to pass on every call (hubspot)
  3. HubSpot-specific auth and coverage caveats

For the full method surface (parameters, pagination, filtering), use your language SDK skill:

  • apideck-node, apideck-python, apideck-dotnet, apideck-java, apideck-go, apideck-php, or apideck-rest

For the raw OpenAPI spec:

Minimal example (TypeScript)

import { Apideck } from "@apideck/unify";

const apideck = new Apideck({
  apiKey: process.env.APIDECK_API_KEY,
  appId: process.env.APIDECK_APP_ID,
  consumerId: "your-consumer-id",
});

// List contacts in HubSpot
const { data } = await apideck.crm.contacts.list({
  serviceId: "hubspot",
});

Portable across 21 CRM connectors

The Apideck CRM unified API exposes the same methods for every connector in its catalog. Switching from HubSpot to another CRM connector is a one-string change — no rewrite, no new SDK.

// Today — HubSpot
await apideck.crm.contacts.list({ serviceId: "hubspot" });

// Tomorrow — same code, different connector
await apideck.crm.contacts.list({ serviceId: "odoo" });
await apideck.crm.contacts.list({ serviceId: "salesforce" });

This is the compounding advantage of using Apideck over integrating HubSpot directly: code against the unified CRM API once, gain access to every connector in it. New connectors Apideck adds become available to your app without code changes.

HubSpot via Apideck CRM

HubSpot is Apideck's most-installed SMB CRM connector. Strong coverage for contacts, companies, deals (opportunities), and activities.

Entity mapping

HubSpot entityApideck CRM resource
Contactcontacts
Companycompanies
Dealopportunities
Engagement (email, call, meeting, note, task)activities / notes
Pipeline / Deal Stagepipelines
Ownerusers
Custom propertiescustom_fields[]
Lists (static/dynamic)not in unified API — use Proxy

Coverage highlights

  • ✅ Full CRUD on contacts, companies, deals
  • ✅ Activity engagements (reads and writes)
  • ✅ Custom properties surfaced as custom_fields[]
  • ✅ Associations (contact → company, deal → contact) exposed as ID references
  • ⚠️ HubSpot Marketing Hub (forms, workflows, campaigns) — not in CRM unified; use Proxy
  • ❌ HubSpot Lists API — use Proxy with /crm/v3/lists
  • ❌ HubSpot Timeline events — use Proxy

HubSpot auth notes

  • Type: OAuth 2.0, managed by Apideck Vault
  • Scopes: Apideck Vault requests the CRM scopes needed for objects and associations. Exact scope set is configured in the Vault app.
  • Portal binding: each connection is bound to one HubSpot portal (hubId). Multi-portal = multi-connection.
  • API limits: HubSpot enforces per-portal daily and 10-second burst limits. Apideck respects 429 with backoff.

Example: list open deals with pipeline and owner

const { data } = await apideck.crm.opportunities.list({
  serviceId: "hubspot",
  filter: { status: "open" },
  fields: "id,name,amount,close_date,pipeline,owner_id,company_id",
});

Example: create a contact with associations

const { data } = await apideck.crm.contacts.create({
  serviceId: "hubspot",
  contact: {
    first_name: "Alex",
    last_name: "Rivera",
    emails: [{ email: "alex@example.com", type: "primary" }],
    company_id: "hs_company_123",
  },
});

Escape hatch: Proxy API

When an endpoint isn't covered by the CRM unified API, use Apideck's Proxy to call HubSpot directly — Apideck injects auth headers and handles token refresh. Set x-apideck-downstream-url to the target endpoint on HubSpot's own API:

curl 'https://unify.apideck.com/proxy' \
  -H "Authorization: Bearer ${APIDECK_API_KEY}" \
  -H "x-apideck-app-id: ${APIDECK_APP_ID}" \
  -H "x-apideck-consumer-id: ${CONSUMER_ID}" \
  -H "x-apideck-service-id: hubspot" \
  -H "x-apideck-downstream-url: <target endpoint on HubSpot>" \
  -H "x-apideck-downstream-method: GET"

See HubSpot's API docs for available endpoints.

Sibling connectors

Other CRM connectors that share this unified API surface (same method signatures, just change serviceId):

odoo (beta), salesforce, pipedrive, zoho-crm, activecampaign, close, microsoft-dynamics, teamleader, and 12 more.

See also

Repository
apideck-libraries/api-skills
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.