# How do I set up an API whitelist and callback address?

Setting API whitelist, only whitelisted IPs can request platform interfaces, which can effectively enhance security and reduce risks, and at the same time can precisely control access rights and improve system performance and stability. Setting callback address can realize asynchronous communication and real-time notification between systems, improve system responsiveness and user experience, and at the same time reduce polling cost and simplify system integration process.

* **In the API application list, select the API application you want to set, click "Operate", then click "Edit".**

<figure><img src="/files/ieg8kRRC34tE5hDaMRQk" alt=""><figcaption></figcaption></figure>

* **Edit application information according to your application scenario**

<figure><img src="/files/lPcLPVCM3UssTjkO7Tb5" alt=""><figcaption></figcaption></figure>

* **The format of the callback address must begin with http or https, and only one callback address is supported for an application.**

URL path and parameter format restriction requirements:

1. Not empty strings
2. Special strings that do not contain emoji emoticons
3. URL is an absolute path containing the domain name

* **IP whitelist, each line supports only one IP address, if you need to fill in more than one IP address, please change the line to fill in, one per line.**


---

# 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://doc.tokenpay.me/tutorials/how-do-i-set-up-an-api-whitelist-and-callback-address.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.
