# Hapikey has been invalidated error

**URL:** <https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [December 19, 2018, 10:09pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637 "2018-12-19T22:09:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeygetg5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/joeygetg5/32/30191_2.png) [@joeygetg5](https://community.hubspot.com/u/joeygetg5)\
**Post date:** [December 19, 2018, 10:09pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/1 "2018-12-19T22:09:37Z")

</div>

Hello,

I setup a test account several months ago to validate the ability to create forms and submit from our product into HubSpot. All this time I have had access to the HAPI Key and have been able to generate forms and submit test lead data.

Just recently it appears that my HAPI Key has been disabled. Attempting to call the GET /forms to view the test forms I’ve created I receive the following error: “This hapikey (xxx) has been invaldiated”.

When I navigate to the Integrations → API Key section of my portal, I receive “Your portal doesn’t have access to API Keys.”

How can I re-enable API Keys?

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 7:02pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/2 "2018-12-20T19:02:31Z")

</div>

Hi [@joeyformstesting](https://community.hubspot.com/u/joeyformstesting), that’s strange - perhaps your test portal needed to be renewed? Can you respond with the HubID of your test account?

---

<div class="post-metadata">

**Author:** ![joeygetg5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/joeygetg5/32/30191_2.png) [@joeygetg5](https://community.hubspot.com/u/joeygetg5)\
**Post date:** [December 20, 2018, 8:07pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/3 "2018-12-20T20:07:20Z")

</div>

Hi Connor,  
Thanks for the response. The portal ID is 4919188.

Joey

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 8:22pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/4 "2018-12-20T20:22:37Z")

</div>

Hey [@joeyformstesting](https://community.hubspot.com/u/joeyformstesting), it looks like your test account was past its expiration date:

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/a/4ab2da26b877c0fd2472ccc182bb621968a47f49.png) [Lightshot](https://prnt.sc/lxmn7y)

![]()

### [Screenshot](https://prnt.sc/lxmn7y)

Captured with Lightshot

I ended up clicking “Renew” by hovering over that test account, which allowed me to go [here](https://app.hubspot.com/integrations-settings/4919188/api-key) and generate a new key. Are you able to see your API key now?

---

<div class="post-metadata">

**Author:** ![MRodgers](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrodgers/32/102498_2.png) [@MRodgers](https://community.hubspot.com/u/MRodgers)\
**Post date:** [July 27, 2021, 7:06pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/5 "2021-07-27T19:06:26Z")

</div>

Hi there, I’m having a similar issue that says my Hapikey has been invalidated. The form was originally created on my wordpress site, but I’m not seeing the form inside of WordPress or HubSpot. Can you please advise where to fix this?

---

<div class="post-metadata">

**Author:** ![joeygetg5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/joeygetg5/32/30191_2.png) [@joeygetg5](https://community.hubspot.com/u/joeygetg5)\
**Post date:** [December 20, 2018, 8:29pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/6 "2018-12-20T20:29:43Z")

</div>

I am able to see the new key.

Just curious, where do I access the view that shows the expiration? I clicked all through the test account and still do not see that view.

Thanks,  
Joey

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [December 20, 2018, 8:43pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/7 "2018-12-20T20:43:35Z")

</div>

Whoops, sorry I meant to link that. It’s found in the Developer Account in which you created the Test Account: [Developers | HubSpot](https://app.hubspot.com/developer/4914388/test-hub-ids)

---

<div class="post-metadata">

**Author:** ![joeygetg5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/joeygetg5/32/30191_2.png) [@joeygetg5](https://community.hubspot.com/u/joeygetg5)\
**Post date:** [December 20, 2018, 9:30pm UTC](https://community.hubspot.com/t/hapikey-has-been-invalidated-error/12637/8 "2018-12-20T21:30:26Z")

</div>

Great. Thank you for the help!
