# Hubspot sunsetting API keys

**URL:** <https://community.auth0.com/t/hubspot-sunsetting-api-keys/92244>\
**Category:** Get Help\
**Created:** [October 12, 2022, 1:59pm UTC](https://community.auth0.com/t/hubspot-sunsetting-api-keys/92244 "2022-10-12T13:59:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![projects\_ismeandco](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/projects_ismeandco/32/33650_2.png) [@projects\_ismeandco](https://community.auth0.com/u/projects_ismeandco)\
**Post date:** [October 12, 2022, 1:59pm UTC](https://community.auth0.com/t/hubspot-sunsetting-api-keys/92244/1 "2022-10-12T13:59:10Z")

</div>

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

> **[Upcoming: API Key Sunset](https://developers.hubspot.com/changelog/upcoming-api-key-sunset)**
>
> As part of ongoing efforts to protect our customer's data, we will be sunsetting API Keys on November 30

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](https://auth0.com/docs/customize/rules/use-cases/integrate-hubspot)

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

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 14, 2022, 8:05pm UTC](https://community.auth0.com/t/hubspot-sunsetting-api-keys/92244/3 "2022-10-14T20:05:09Z")

</div>

Hi @projects_ismeandco,

Welcome to the Auth0 Community!

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

> **[Private Apps](https://developers.hubspot.com/docs/api/private-apps#make-api-calls-with-your-app-s-access-token)**
>
> Learn how to create private apps in HubSpot.

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

For example:

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

```

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 28, 2022, 8:53pm UTC](https://community.auth0.com/t/hubspot-sunsetting-api-keys/92244/4 "2022-11-28T20:53:56Z")

</div>

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