agentleFS
apideck-librariesapideck-libraries/api-skills/skills/hubspot/SKILL.md

hubspot

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

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

  • Reads credentials

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use posthog and discord.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    posthog

    Analyze product data and manage product tooling in PostHog. Use when the user wants product analytics or insights, HogQL/SQL queries, feature flags, experiments and A/B tests, error tracking, session replay, surveys, LLM analytics, dashboards, data warehouse, or PostHog documentation.

    Also in 3 projects that use this

  • jiulingyunSkill

    discord

    Discord ops via the message tool (channel=discord).

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When an endpoint isn't covered by the CRM unified API, use Apideck's Proxy to call HubSpot directly — Apideck injects auth headers and …

    line 162

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

At a glance

  • Implementation difficulty: straightforward — Self-Service OAuth + Free Developer Tooling — No Partnership or App Review
  • Vendor partnership required: no (HubSpot App Marketplace) — Listing in the App Marketplace makes you a HubSpot Technology Partner and adds a free listing page; developer test accounts need no partnership.
  • Apideck-managed credentials: available — For testing: OAuth shows "Apideck" as the requesting application; production integrations use your own HubSpot app.
  • Account type required: Any HubSpot edition, including the free CRM.
  • Consumer access level: The authorizing user needs the App Marketplace Access permission (super admins have it by default).
  • Sandbox: available (signup) — Free developer test accounts, self-service from your regular HubSpot account (up to 10).
  • Costs: None — HubSpot developer tooling and public apps are free to build and distribute.
  • Rate limits: 110 requests per 10 seconds per connected account for publicly-distributed OAuth apps; the CRM Search API is separate at 5 requests/second.
  • Authentication: Authorization Code flow.
  • Webhooks: Native — contact, company and opportunity created/updated/deleted events; no engagement (activity or note) events.

Important to know:

  • The scopes configured on your HubSpot app must match exactly the scopes Apideck requests during OAuth. Any mismatch fails consumer authorization with an insufficient-scopes error, so update the app whenever the connector's scope set changes.
  • HubSpot retired its legacy app-building flow in 2026 — legacy developer accounts began migrating on March 9, 2026, and legacy public app creation was disabled for all accounts on June 23, 2026. New apps are built on the Projects-based platform; existing apps keep working.
  • Webhook subscriptions are app-level, not per-connection: one set, registered manually in your HubSpot app, delivers events for every connected consumer — you cannot vary event coverage per consumer.

Facts synced from Apideck's connector metadata API — GET /connector/connectors/hubspot (overview field) is the live, authoritative version.

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.