Please note: as of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. During this deprecation phase, HubSpot may deactivate your key at any time.
Authentication methods on HubSpot
If you were previously using an API key to authenticate, learn how to migrate to using a private app access token instead.
Similar to OAuth, to make a request using a private app access token, include the token in the authorization header: