What This Update Actually Is
HubSpot shipped a new Developer Secrets API, currently in beta. It gives agents and custom automation the ability to manage app secrets from end to end.
A secret in HubSpot is a credential your private app depends on: an API key, an access token, a webhook signing secret. Until now, the only way to manage those credentials was through the HubSpot CLI or the developer tools UI, both manual steps a human had to execute.
With this API, an agent can list existing secret keys, create new secrets, update values (critical for rotating expiring credentials), and delete secrets that are no longer needed. The values themselves are write-only. The API will never return a secret's actual value, which means agents can do all the credential housekeeping without any risk of exposing the credentials themselves.
Each HubSpot account can hold up to 100 app secrets across all of its apps. The API is scoped to your app and tied to the account associated with your authentication token.
Why HubSpot Shipped This
Here's the pattern we've seen in portals running multiple private apps: credential rotation gets skipped. Not because the humans managing it don't care, but because it requires manual access to the CLI, the right permissions, and someone actually remembering to do it before an expiring token breaks an integration.
That's a real operational risk. An expired credential doesn't just break the app. It breaks the workflow, the reporting, the customer experience sitting downstream of it.
HubSpot is also expanding what agents can do inside the platform. This update fits that pattern directly. If an agent is responsible for setting up or maintaining an integration, it needs the ability to provision the credentials that integration depends on, without requiring a developer to manually intervene at every step.
This pairs naturally with the broader agent expansion happening across HubSpot right now. If you haven't read about custom agent plans built from your real portal usage, that context will make this update click faster.
How to Use It Step by Step
This is a developer-facing API, so the steps below assume you're working with a private app or building an agent that manages one.
- Confirm beta access: the Developer Secrets API is available to all HubSpot accounts that have developer apps. Log into your developer account and verify your app is active.
- Set scopes for your app: add developer.secrets.read to let your agent list existing secret keys. Add developer.secrets.write to let it create, update, or delete secrets. Add both if your agent needs to check what's already there before creating something new.
- Call the correct base path: all endpoints live under /developers/secrets/2027-03-beta/apps/{appId}/secrets. Substitute your app's ID where indicated.
- List existing secrets: GET .../secrets returns the keys (not the values) currently stored for your app. Use this to audit what's present before making changes.
- Create a new secret: POST .../secrets with the key name and value. The value is stored but never returned by any GET call.
- Rotate an expiring credential: PATCH .../secrets to update the value of an existing key. This is the core use case for automated credential rotation, updating a token before it expires without touching the key name.
- Delete a secret: POST .../secrets/delete removes a credential that's no longer needed. Clean this up regularly to stay under the 100-secret-per-account limit.
What It Touches in Your HubSpot Strategy
On the surface, this looks like a pure developer API with no marketing or sales impact. Don't let that framing fool you.
Every private app your team relies on, whether it connects your ERP, syncs product data, or powers a custom workflow, depends on credentials that have to stay current. When those credentials expire and no one notices, the humans who depend on that data are flying blind.
Key Takeaway
Credential rot is one of the most common silent killers of HubSpot integrations. An expired API key doesn't announce itself with an error screen. It just stops syncing data, and your team wonders why the numbers look wrong.
Here's where this ripples into your broader setup:
- Automated credential rotation keeps integrations alive without a developer babysitting them, so your workflows keep running without interruption.
- Agent-assisted app provisioning means a developer agent can stand up a new integration, including its credentials, as part of a larger automated task rather than requiring human handoffs.
- Write-only enforcement removes credential exposure risk from the agent layer, so you can grant automation the access it needs without opening a security gap.
- Scope-level control lets you give list-only access to agents that need to audit secrets, and full write access only to agents that need to provision or rotate them.
Key Takeaway
If your team is building toward a more automated HubSpot environment, credential management is operational infrastructure. This API makes that infrastructure agent-ready.
If you're already thinking about how to control what agents can access inside HubSpot, the granular tool permissions for Breeze Agents and Connectors update is closely related. Both updates are about giving agents the right access without giving them unchecked access.
Pair this with the self-service connector builder on the HubSpot developer platform and you start to see the shape of what HubSpot is building: a developer ecosystem where agents can handle the full lifecycle of an integration, not just the data-passing part.
Who Should Care Most
This update is squarely for technical humans inside your organization. Here's who that actually includes:
- HubSpot developers and solutions architects who build and maintain private apps will find immediate use here. Credential rotation in particular is a pain point this solves cleanly.
- RevOps and technical operations leads at companies running multiple integrations will care about this from a reliability standpoint. Broken credentials mean broken data pipelines.
- Teams building agentic workflows inside HubSpot who want agents to be capable of full integration setup, not just data retrieval.
- Security-conscious organizations that want automation to handle credential lifecycle without ever exposing the actual credential values.
If you're a non-technical marketer or sales leader, this probably isn't something you'll interact with directly. But if your team runs private apps to connect HubSpot to other systems, this update affects the reliability of tools you depend on every day.
George's Take
I've watched too many portals quietly degrade because a credential expired and nobody caught it in time. The humans who needed that data didn't know the pipe was broken. They just thought the numbers were off. This API won't make the front page of a marketing blog, but for the teams I work with who are building serious automation on top of HubSpot, it's genuinely foundational. Agents that can manage their own credentials aren't just convenient; they're a prerequisite for automation that actually flourish in production over time, not just in the demo.
“An agent that can't manage its own credentials is like a contractor who shows up to the job site but can't get through the door. This API hands them the key.”
If your team is building or maintaining private apps in HubSpot and you want a strategic eye on how your developer setup, automation layer, and RevOps infrastructure fit together, let's talk. Book a strategy call with the Sidekick team and we'll show you where the gaps are before they cost you.
Frequently Asked Questions
What is the HubSpot Developer Secrets API?
The HubSpot Developer Secrets API is a beta feature (expected February 28, 2027) that lets agents and custom automation manage app credentials end to end. Agents can list secret keys, create new secrets, rotate expiring credentials, and delete old ones, all without the secret values ever being exposed through the API.
Is the Developer Secrets API available to all HubSpot accounts?
Yes, in beta form. The API is available to any HubSpot account that has developer apps set up. There's a limit of 100 app secrets per account across all apps. The feature is expected to release from beta on February 28, 2027.
Can an agent read my app's secret values through this API?
No. The Developer Secrets API is write-only for secret values. An agent can create, update, or delete a secret, but the actual value is never returned by any API call. This design lets agents handle credential management without exposing the credentials themselves.
What scopes do I need to use the Developer Secrets API?
Use developer.secrets.read to allow listing of existing secret keys, and developer.secrets.write to allow creating, updating, or deleting secrets. If your agent needs to check what secrets already exist before creating new ones, you'll want both scopes authorized on the app.
Why does automated credential rotation matter for HubSpot integrations?
Expiring API keys and access tokens are one of the most common causes of silent integration failures. When a credential expires, data stops syncing but no error is obvious. Automated rotation via the Developer Secrets API keeps credentials current without requiring manual developer intervention, protecting the workflows and reports that depend on live data.
How does the Developer Secrets API relate to HubSpot agents and Breeze?
HubSpot is expanding what agents can do autonomously across the platform. The Developer Secrets API is part of that pattern: it allows agents to handle the full lifecycle of an app integration, including provisioning and maintaining the credentials the integration depends on, without requiring a human to step in for each credential change.






