# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
