# Get Hubspot Api Key From Token

**URL:** <https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197>\
**Category:** APIs & Integrations\
**Tags:** help-desk\
**Created:** [March 4, 2020, 12:19pm UTC](https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197 "2020-03-04T12:19:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkcadmin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vkcadmin/32/76793_2.png) [@vkcadmin](https://community.hubspot.com/u/vkcadmin)\
**Post date:** [March 4, 2020, 12:19pm UTC](https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197/1 "2020-03-04T12:19:41Z")

</div>

Hello

I want to get hubspot api key from access or refresh token.

please tell me about this

Thanks

Vinod Kumar

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 10, 2020, 7:04pm UTC](https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197/2 "2020-03-10T19:04:35Z")

</div>

Hi, @vkcadmin.

Apologies for the delayed response.

For security, it is not possible to retrieve HubSpot [production](https://knowledge.hubspot.com/integrations/how-do-i-get-my-hubspot-api-key) or [developer API key](https://developers.hubspot.com/docs/faq/developer-api-keys) values via API, even if you have an OAuth access token to the account. The keys must be viewed in the UI.

What is your use case? Perhaps I can still help you achieve it.

---

<div class="post-metadata">

**Author:** ![Douglas\_P](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/douglas_p/32/93181_2.png) [@Douglas\_P](https://community.hubspot.com/u/Douglas_P)\
**Post date:** [July 28, 2020, 2:05am UTC](https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197/3 "2020-07-28T02:05:21Z")

</div>

Hi @IsaacTakushi! Someone in my account has changed my API Key. Is it possible to restore it somehow?

It would bring a lot of complexity to re-do all the integrations previously made

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [July 28, 2020, 11:28am UTC](https://community.hubspot.com/t/get-hubspot-api-key-from-token/19197/4 "2020-07-28T11:28:40Z")

</div>

Hi, [@Douglas\_P](https://community.hubspot.com/t5/user/viewprofilepage/user-id/114437).

Thanks for reaching out.

Unfortunately, it is not possible to revert API keys once they have been rotated.

While we do not have information on where your old API key may be used, please let me know if there is anything else I can do to assist.
