# What should I do if the API expires? What should I do if I delete the API on Binance?

Situation 1: There is a robot running in AntBot, but I accidentally deleted the API on Binance.&#x20;

Solution: Go to Binance to regenerate the API, then click Renew on the AntBot → Me → API KEY page, enter the API Key and Secret Key and click the renew button. After the renewal is successful, everything will return to normal. Refer to Case 2 for the renewal steps.

Situation 2: AntBot prompts that the API is about to expire.&#x20;

Solution: Go to Binance to regenerate the API, then click Renew on the AntBot → Me → API KEY page, enter the API Key and Secret Key and click the renew button. After the renewal is successful, everything will return to normal.

<div align="center"><img src="https://4193713460-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI4SxAHupbfjVHAFGdOht%2Fuploads%2Fk8JkYW8cZva2Lm4gonoe%2F6aa614c3e1431056889e078b626a030.jpg?alt=media&#x26;token=1b286088-9ea6-41d2-9009-400dd5b17d71" alt="You will be prompted one week before the expiration date, click to renew now."></div>

![Go to Binance to create a new API, then copy and paste it to this page, and click Renew to complete.](https://4193713460-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI4SxAHupbfjVHAFGdOht%2Fuploads%2Fv6RSOZ6sXiyFJdy8Arhe%2F865f4e0c7f08189ec786e4770d0af98.jpg?alt=media\&token=1ddefa8d-04ee-4176-b90c-284238c13fc6)

**Note: What should I do if my AntBot does not pop up the API renewal prompt and I want to renew in advance?**

![Find the API management entry on the My menu page, and click to enter.](https://4193713460-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI4SxAHupbfjVHAFGdOht%2Fuploads%2FusRrmfFwnbz4OANpQkL9%2Fimage.png?alt=media\&token=41095378-7fcb-4740-ba95-e7f5aa80469f)

![Select the currently enabled API, then click Renew, then go to Binance to recreate the API and import it.](https://4193713460-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI4SxAHupbfjVHAFGdOht%2Fuploads%2FHTUXeXO6nUvqSFlmXJVU%2Fimage.png?alt=media\&token=bb4a0b72-040e-4cf5-8bf2-2151171f0817)


---

# 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://antbot.gitbook.io/antbot/what-should-i-do-if-the-api-expires-what-should-i-do-if-i-delete-the-api-on-binance.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.
