If you've tried to create a private app in HubSpot recently and the option wasn't there, you're not doing anything wrong. HubSpot changed how server-to-server integrations get their credentials, and most tutorials online still describe the old path.
Key points
- Since October 26, 2026, existing HubSpot accounts can no longer create legacy private apps (the old
pat-tokens). New accounts lost the option earlier, on September 28. - Private app tokens that already exist keep working. HubSpot has announced the end of support for legacy apps and for v1 to v3 APIs in September 2027.
- For a new server-side script, the credential is a Service Key: created in settings, scoped, sent as a Bearer token.
- Service Keys don't support webhooks. If your integration reacts to changes, poll the search API instead.
- New code should use the date-versioned API paths (for example
/crm/objects/2026-03/deals) instead of/crm/v3/.
What changed with HubSpot private apps
Private apps were the simple way to give a script access to your HubSpot data: create the app, pick scopes, copy a token. That flow is now closed for new legacy apps. HubSpot's direction is two credential types: project-based apps built with the developer platform, and Service Keys for straightforward data integrations.
For a typical marketing or sales operations script (read deals, read contacts, send events somewhere else), a Service Key covers it.
How to create a HubSpot Service Key
- Go to Settings → Integrations → Service Keys. In some accounts the menu is Development → Keys → Service Keys.
- Create a key and give it a name that says what it does, for example Meta CAPI return bot.
- Add only the scopes the script needs. For reading deals and their contacts:
crm.objects.deals.read,crm.objects.contacts.readandcrm.schemas.deals.read. - Copy the key once and store it in the script's environment, never in the code.
It's sent like any Bearer token:
curl -s -H "Authorization: Bearer $HUBSPOT_KEY" \
"https://api.hubapi.com/crm/pipelines/2026-03/deals"
That call is also the fastest way to get the internal IDs of your pipeline stages, which is what your code should compare against (never the stage labels, someone will rename them).
No webhooks: poll the search API instead
The one real limitation: Service Keys don't support webhooks. Webhooks need a project-based app built with the HubSpot CLI.
For most integrations, polling is the more robust option anyway. Every few minutes, search for records modified since the last run:
- filter on
hs_lastmodifieddatewith operatorGTEand a value in epoch milliseconds; - sort ascending by the same property, up to 200 results per page;
- keep the search limits in mind: 5 requests per second per account and a cap of 10,000 results per query;
- move your cursor back a few minutes on every run, because the search index takes a moment to reflect an update, and keep a per-record history so the overlap doesn't create duplicates.
What to do if you still run on a private app token
Nothing breaks today. Put two things on the calendar: replace the token with a Service Key, and move your endpoints to the date-versioned paths. Both are small changes if your code keeps the base path and the credential in configuration, not scattered through the script.
Where this matters most: sending CRM stages back to ad platforms
A common use for these scripts is closing the loop between HubSpot and Meta Ads: when a deal is qualified or won, an event goes to the Conversions API so campaigns learn which leads actually turn into customers. That's layer 4 of the 4-Layer Tracking Kit, which builds the whole path with a Service Key, the 2026-03 API and polling, including the HubSpot API pitfalls that return status 200 and do nothing.
FAQ
Do my existing HubSpot private app tokens stop working?
No. Tokens from legacy private apps that already exist keep working. What changed is that existing accounts can no longer create new legacy private apps. HubSpot has announced the end of support for legacy apps and for the v1 to v3 APIs in September 2027, so plan the migration before then.
What replaces private apps for a simple server-to-server script?
A Service Key. You create it in the account settings, give it only the scopes the script needs, and send it as a Bearer token. For a script that reads deals and contacts, read-only CRM scopes are enough.
Can I receive HubSpot webhooks with a Service Key?
No. Webhooks require a project-based app built with the HubSpot CLI. With a Service Key, the robust alternative is polling the search API every few minutes for records modified since the last run.