> For the complete documentation index, see [llms.txt](https://www.boxhero.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.boxhero.io/docs/faq/vi/tich-hop-and-api/api.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://www.boxhero.io/docs/faq/vi/tich-hop-and-api/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
