> For the complete documentation index, see [llms.txt](https://help.utrading.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.utrading.io/en/exchange/create-api/api-faq/what-should-i-do-if-the-api-is-deleted-in-binance-and-what-should-i-do-if-the-api-expires.md).

# What Should I Do If the API is Deleted in Binance?& What Should I Do If the API Expires?

Scenario 1:

uTrading has running robots, but I have **deleted the API** on the exchange.

Solution:

First, go to **Binance** APP to regenerate the **new API**.\
Then fill in the **new API** information in the **\[**<mark style="color:blue;">**API Binding**</mark>**]** of the **\[**<mark style="color:blue;">**Home**</mark>**]** and click the **\[**<mark style="color:blue;">**Edit]**</mark> button. \
After the edition is successful, everything will return to normal.

Scenario 2:\
The running robot displays the prompt “**Pause: Invalid API key operation permission**“, or the robot automatically stops and displays “**API expired or no permission**“.

Solution:

First of all, **Binance’s API** is valid for transactions within **60 days**, and **Okx’s API** is valid for transactions within **30 days**.\
If it has expired, you need to go to the exchange to **regenerate the API**.

Then click **\[**<mark style="color:blue;">**Edit**</mark>**]** in **\[**<mark style="color:blue;">**API Binding**</mark>**]** on the **\[**<mark style="color:blue;">**Home**</mark>**]** page, fill in the **\[**<mark style="color:blue;">**API Key**</mark>**]** and **\[**<mark style="color:blue;">**API SecretKey**</mark>**]**, and click the **\[**<mark style="color:blue;">**Edit**</mark>**]** button again, and everything will return to normal after the edition is successful.
