Last modified: August 22, 2025
This authentication guide pertains to legacy public apps. For an overview of authentication for apps built on the new developer platform, check out this article instead.
Please note:Integrations designed for multi-customer use or listing on the App Marketplace must be built as an app using HubSpot’s OAuth protocol
OAuth
To make a request using OAuth when building a public app, include the OAuth access token in the authorization header:Private app access tokens
Similar to OAuth, to make a request using a private app access token, include the token in the authorization header:Automatic token deactivation
To protect developers from potential security incidents, HubSpot leverages the monitoring and secret scanning capabilities provided by GitHub to detect any HubSpot authentication tokens that are publicly exposed in GitHub repositories. Any detected tokens will automatically be deactivated, and you will be notified via email and in-app notification so you can generate a new token and update your integrations to replace the revoked token.
- Developer API keys created within your app developer account.
- Personal Access Keys used to authenticate commands in the HubSpot CLI.
- Private access tokens used to authenticate requests in a private app.
- SMTP tokens used for sending transactional emails.