# creating an API key

**URL:** <https://community.hubspot.com/t/creating-an-api-key/71448>\
**Category:** APIs & Integrations\
**Created:** [December 18, 2022, 4:44am UTC](https://community.hubspot.com/t/creating-an-api-key/71448 "2022-12-18T04:44:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 19, 2022, 10:42pm UTC](https://community.hubspot.com/t/creating-an-api-key/71448/2 "2022-12-19T22:42:08Z")

</div>

Hi, @SDS1 👋 API keys for HubSpot portals have been depreciated and can no longer be created. You’ll need to either create a [Private App](https://developers.hubspot.com/docs/api/private-apps) or create an App and [set up OAuth](https://developers.hubspot.com/docs/api/working-with-oauth) to handle the Authorization.

Can you provide any additional details about your project? This can help the community to understand what you are trying to accomplish.

Best,

Jaycee

---

_[View the full topic](https://community.hubspot.com/t/creating-an-api-key/71448)._
