Steps to replace or rotate your HubSpot token when it expires or is revoked.

If your HubSpot Private App token expires, is rotated, or you need to update it for any reason, here's how to do it.
If you're passing the token via the --token flag, simply use the new token value in your next command:
hubdeck audit --token pat-na1-your-new-token
If you're using an environment variable (recommended), update your shell profile or .env file:
HUBSPOT_TOKEN=pat-na1-your-new-token
If you're using HubDeck in a scheduled cron job or CI environment, make sure to update the token wherever it's stored — in your cron environment, GitHub Actions secrets, or wherever you've configured it.
Never commit your HubSpot token to a public repository. Use environment variables or a secrets manager. HubDeck only reads CRM data — it never writes to your portal — but the token should still be treated as a credential and rotated if it's ever exposed.
Odio ut nibh eget morbi proin elit dolor sit pellentesque vitae scelerisque dolor ligula a suspendisse eros dui consequat urna turpis tristique at urna.


Explore our collection of 200+ Premium Webflow Templates