RevOps + HubSpot 10 min read

A Developer's Guide to the HubSpot API: Objects, Webhooks and Auth

What it takes to connect HubSpot to a real stack: dated API versions, auth, rate limits, webhooks, two-way sync and the failures that only show up in production. Plus what a leaked key means under Australian law.

Neighbourhood team HubSpot Diamond Partner, Brisbane

Updated 24 November 2026. HubSpot moved its REST APIs to date-based versions in March 2026, renamed private apps as legacy apps on its new developer platform, and added service keys. This guide now covers those changes, the current rate limits, and how webhook retries and signatures work.

The HubSpot API lets another system read and write HubSpot records: contacts, companies, deals, tickets and custom objects, plus the associations between them. You authenticate with OAuth, a static token or a service key, send JSON over HTTPS, and use webhooks to hear about changes. The hard parts are rate limits, two-way sync and what happens when a call fails.

This guide is for the developer or technical lead connecting HubSpot to a real stack: an ERP, a job system, a data warehouse or your own product. It is written from the integrations we build for Australian businesses, so it also covers what a leaked key means under Australian privacy law. If you are still deciding whether you need a custom build at all, start with our guide to HubSpot integrations in Australia, which compares Marketplace apps, data sync and custom integrations.

Which HubSpot API version should you build on?

The current date-based version. Since 30 March 2026, HubSpot names REST API versions by release date instead of v1 to v4, so a contacts call now looks like /crm/objects/2026-09/contacts. A new version is released every March and September. Each one is Current for six months, then Supported, and Unsupported 18 months after release, according to HubSpot's versioning guide.

The old v3 and v4 URLs still work. If you have an integration built on them, it has not broken, but plan the move to a dated version the next time you touch the code, and put the upgrade date in someone's calendar. The API reference has a version picker for each endpoint.

How do you authenticate with the HubSpot API?

There are three options for calling the API, and the right one depends on who will install what you build. HubSpot's authentication overview sets them out:

MethodUse it whenWatch for
OAuthYour app is installed in more than one HubSpot account, through the Marketplace or a private list of up to 10 accountsYou host the token service and refresh access tokens before they expire
Static auth tokenAn app built on the developer platform for one account, such as your own business's integrationThe token is a long-lived secret: store it in a secrets manager and never in code
Service keyA script or service that calls the REST API directly with no app around itGive each key only the scopes it needs and rotate it on a schedule

Private apps you built before the new developer platform still run. HubSpot now calls them legacy private apps, and you can have up to 20 in an account. The old portal-wide API keys are gone, so if a vendor asks you for "the HubSpot API key", ask which of these they mean.

How do you read and write HubSpot records?

Each CRM object has the same set of endpoints: create, read, update and archive one record, list records with paging, search with filters, and batch versions of create, read, update and archive. Properties have their own API for creating and changing fields, and the associations API links records together, for example a contact to a company and a deal.

  • Use batch endpoints. One batch call replaces many single calls, which keeps you under the rate limits and makes a sync faster.
  • Filter at the source. Search by last modified date instead of pulling every record and comparing.
  • Treat associations as data. Most broken integrations we are asked to fix create the record correctly and forget to associate it, so the deal exists with no company on it.
  • Use internal property names. Labels change when someone in marketing renames a field. Internal names do not.

If cost per call is part of the decision, we have broken down what it costs to run your own API key at 150 people.

What are the HubSpot API rate limits?

For a privately distributed app, such as an integration built for your own account, the limits from HubSpot's API usage guidelines are:

Your highest HubSpot tierBurst limit, per appDaily limit, shared by every app in the account
Free and Starter100 requests every 10 seconds250,000
Professional190 requests every 10 seconds625,000
Enterprise190 requests every 10 seconds1,000,000
With the API limit increase add-on250 requests every 10 secondsAn extra 1,000,000 for each increase, up to two

Apps installed from the HubSpot Marketplace get 110 requests every 10 seconds per installing account, and the add-on does not raise that. The search API and the associations API have their own stricter limits. The daily figure is the one that catches teams out, because every integration in the account shares it: a new sync that runs fine on its own can push an old one over the line.

When you hit a limit HubSpot returns a 429. Back off and retry with an increasing delay, and log every 429 so you can see a limit coming before it stops a sync. Super Admins can check usage in the account under Development, then Monitoring.

How do HubSpot webhooks work?

You subscribe to events, such as a contact being created or a deal property changing, and HubSpot posts a batch of notifications to your endpoint. For a legacy private app, HubSpot sends up to 10 requests at a time with up to 100 events in each.

If your endpoint takes longer than five seconds to answer, or returns an error, HubSpot retries the notification up to 10 times over the next 24 hours, according to its webhooks guide. So answer fast and do the work afterwards: put the event on a queue, return a 200, then process it. If you do the work before you answer, a slow day turns into duplicate processing.

Check that each request came from HubSpot before you act on it. The current method is the X-HubSpot-Signature-v3 header, an HMAC SHA-256 of the method, URL, body and timestamp signed with your app's client secret. Reject any request whose timestamp is more than five minutes old, as HubSpot's guide to validating requests recommends. We go further on event-driven design in building a connected RevOps engine on HubSpot webhooks.

A two-way sync that survives a bad day
How a reliable HubSpot two-way sync handles webhooks, retries and failuresHubSpot sends a webhook to your endpoint. The endpoint checks the v3 signature and rejects anything older than five minutes, puts the event on a queue and answers within five seconds. A worker takes events off the queue, checks an idempotency key so the same event is never applied twice, and writes to the other system through its API using batch calls. Rate limit responses, 429s, go back on the queue with a growing delay. Anything that still fails goes to a failed list that alerts a named owner. Changes in the other system flow back to HubSpot the same way. HubSpotWebhook event Your endpointCheck v3 signatureQueue it, answer in 5s WorkerIdempotency checkBatch write Other systemERP, job system 429 or timeoutBack on the queue, longer delay Still failingFailed list, alert an owner

The five second answer and five minute timestamp window are from HubSpot's webhooks and request validation guides, checked 24 November 2026. The queue, idempotency check and failed list are how we build syncs, not HubSpot requirements.

Should your sync poll HubSpot, or listen for changes?

Talk to Matt about the systems you need connected. He can explain how we work and whether our HubSpot services fit what you need.

How do you build a two-way sync you can trust?

Decide which system owns each field before you write any code. If both systems can edit the customer's phone number, you need a rule for who wins, and the rule should be written down where the next developer will find it. The usual answer is that each field has one owner and the other system only reads it.

  • Idempotency. Give every write a key so the same event applied twice has the same result. HubSpot's own explainer on idempotent APIs covers the idea.
  • Loop protection. When your sync writes to HubSpot, HubSpot fires a webhook back. Tag your own writes so the sync ignores them.
  • A failed list someone reads. Retries handle a bad minute. A record that fails ten times needs a person, and that person needs to be named.
  • A test account. Build and rehearse against a HubSpot sandbox or developer test account before you point a sync at production.

Volume changes the design too. On one project this year our team worked out that a client's two-way sync between its project management tool and HubSpot would have needed 71 triggers in Zapier. We built a direct integration between the two systems through their APIs instead, with an alert when it fails. Our guide to HubSpot and Zapier covers where a no-code tool is the cheaper answer.

How do you extend HubSpot with custom actions and UI?

Two features let your code run inside HubSpot instead of beside it. Custom workflow actions let a HubSpot workflow call your service, for example to validate an ABN, enrich a company or check stock, and use the answer in later steps. UI extensions add cards to a record so a rep sees data from another system without leaving HubSpot. Both are built as apps on the developer platform.

A simpler option exists for one-off calls: a workflow can send a webhook to any URL you control. HubSpot's guide to using webhooks in workflows explains the setup, and the same signature check applies. On the public website, integrating HubSpot CMS with your own APIs lets a page show live data from a system HubSpot never sees.

What does a leaked HubSpot key mean under Australian law?

It can be a notifiable data breach. A static token or service key committed to a repository someone else can read, or a webhook pointed at the wrong endpoint, can put customer records outside your control. Under the Notifiable Data Breaches scheme in the Privacy Act 1988, you have to assess a suspected breach, and if it is likely to cause serious harm you must tell the people affected and the OAIC.

The controls that prevent it are dull and they work:

  • Keep tokens and client secrets in a secrets manager, never in code or a shared document.
  • Give each app and service key the fewest scopes that do the job, and review them when the integration changes.
  • Rotate a client secret straight away if it is exposed. HubSpot supports rotation for apps on the developer platform and legacy public apps.
  • Validate every incoming request and every input before it reaches HubSpot.
  • Log who and what called the API, and alert on unusual spikes.

The ASD's Essential Eight, published by the Australian Cyber Security Centre, covers the wider half: who can reach those credentials and what gets patched.

Frequently asked questions

Does HubSpot still use API keys? Not portal-wide API keys. You call the API with an OAuth access token, a static auth token from an app installed in one account, or a scoped service key. Developer API keys still exist for some app settings.

What is the HubSpot API rate limit? For a privately distributed app it is 100 requests every 10 seconds on Free and Starter, and 190 on Professional and Enterprise, with daily limits of 250,000, 625,000 and 1,000,000 shared across the account.

Do HubSpot webhooks retry? Yes. If your endpoint errors or takes more than five seconds to answer, HubSpot retries up to 10 times over 24 hours.

Are the v3 HubSpot APIs going away? Not yet. HubSpot moved to date-based versions such as 2026-09 in March 2026, and the v1 to v4 URLs are still supported at their old addresses.

A sync is only as good as the CRM it writes to. If you are connecting finance or a CRM migration, our guides to connecting HubSpot and Xero and our Salesforce to HubSpot work pick up from here. For a job system, On Top Roofing shows HubSpot and Simpro connected properly. We build integrations like these as part of our RevOps and HubSpot work, and have worked with 300+ businesses since 2015.

Does your sync break every time someone edits a property?

Talk to Matt about the integration that keeps breaking. He can explain how we work and whether our HubSpot services fit what you need.

Sources

Neighbourhood

Neighbourhood is a HubSpot Diamond Partner in Brisbane. We build AI systems and the revenue operations they run on, for businesses across Australia and New Zealand.