Hubspot sunsetting API keys

Hubspot are going to be switching off API keys and moving solely to public and private apps.

I use Auth0 for customer login on our site and then use the Hubspot API keys to create a contact in Hubspot, shown here: Integrate with HubSpot Marketing Software

Does anyone know how to setup the same workflow using a hubspot private app? TIA

Hi @projects_ismeandco,

Welcome to the Auth0 Community!

This doc shows how to create a private app and retrieve an Access Token:

Then you should be able to remove the API key from the requests and add in your bearer token as a header.

For example:

headers: {
      'Authorization': `Bearer ${YOUR_TOKEN}`,
      'Content-Type': 'application/json'

Note: I haven’t tested this, just going off of the docs.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.