# API

***

#### **Làm thế nào để tôi tạo một mã token API?**

Trong ứng dụng web trên máy tính, hãy vào <mark style="color:$primary;">`Cài đặt`</mark> > <mark style="color:$primary;">`Tích hợp`</mark> và tạo một mã token API mới. Sử dụng nó như một token Bearer trong <mark style="color:$primary;">`Authorization`</mark> phần header của các yêu cầu API.

<figure><img src="/files/815c11df76db1e338ed5d7a4f7ddb5122fb01dcb" alt=""><figcaption></figcaption></figure>

URL cơ sở là <mark style="color:$primary;">`https://rest.boxhero-app.com`</mark>.&#x20;

#### **Có giới hạn tần suất API không?**

Có. Để giữ cho dịch vụ ổn định, mỗi endpoint bị giới hạn ở **5 truy vấn mỗi giây**. Nếu bạn vượt quá mức này, bạn sẽ nhận được phản hồi lỗi kèm các header giới hạn tần suất.

Xem [tại đây](https://rest.boxhero-app.com/docs/api) để biết đầy đủ tài liệu về các endpoint.


---

# 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://www.boxhero.io/docs/faq/vi/tich-hop-and-api/api.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.
