# "Authorization Extension: Invalid API Key" - due to key deleted

**URL:** <https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747>\
**Category:** Get Help\
**Created:** [April 8, 2021, 2:54am UTC](https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747 "2021-04-08T02:54:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![susan.zheng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/susan.zheng/32/13774_2.png) [@susan.zheng](https://community.auth0.com/u/susan.zheng)\
**Post date:** [April 8, 2021, 2:54am UTC](https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747/1 "2021-04-08T02:54:31Z")

</div>

I mistakenly deleted the Key | Value in Auth0 Dashboard → Rules – \> Settings panel, is there a way to recover it or how to create a new pair of Key/Value? I forgot how I add that before (-: Could you provide an example?

My connection to my application used to work fine which showed “It Works” before, But without the key, it prompted:  
{  
“error”: “unauthorized”,  
“error\_description”: “Authorization Extension: Invalid API Key”  
} "

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 8, 2021, 3:51pm UTC](https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747/3 "2021-04-08T15:51:56Z")

</div>

Hi @susan.zheng,

To rotate the token, open up the authorization app by selecting the **Authorization** tab in your Auth0 dashboard, and go to the configuration page. Click rotate to add the key/value for the authz rule:

 ![screenshot-example-connections.us.webtask.run-2021.04.08-11_47_15 (1)](https://global.discourse-cdn.com/auth0/original/3X/9/a/9ae4d2c390300071f99c33f65d90174bd0563805.png)

---

<div class="post-metadata">

**Author:** ![susan.zheng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/susan.zheng/32/13774_2.png) [@susan.zheng](https://community.auth0.com/u/susan.zheng)\
**Post date:** [April 9, 2021, 2:00am UTC](https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747/4 "2021-04-09T02:00:47Z")

</div>

Thank you for your helpful info! A new apikey is generated successfully.

---

<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:** [April 24, 2021, 2:00am UTC](https://community.auth0.com/t/authorization-extension-invalid-api-key-due-to-key-deleted/60747/5 "2021-04-24T02:00:55Z")

</div>

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