> For the complete documentation index, see [llms.txt](https://doc.tokenpay.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.tokenpay.me/tutorials/how-does-a-website-access-api-payments.md).

# How does a website access API payments?

Payment functions can be integrated into your application or website by accessing the API. The API interface also provides real-time access to payment-related data and reports, including transaction records, payment status, and fund flows, helping you with real-time monitoring and management.

### Before accessing the API payment, you need to complete the registration operation.

* **Click "Application"**

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

* **Select API access to payments and click "Access"**

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

* **Click "Add application"**

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

* **Fill in the App name, Callback address, etc. and click "Submit".**

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

* **After successful creation, we can see the newly added API application and will produce APP\_ID and APP\_SECRET for API calls, and then refer to the API documentation for operation. Tip: APP\_ID and APP\_SECRECT are very important, please don't show them in any web code, URL parameter!**

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