> For the complete documentation index, see [llms.txt](https://www.boxhero.io/docs/llms.txt). Every page is available as Markdown by appending `.md` to its URL; this page is [Markdown](https://www.boxhero.io/docs/zh-tw/faq/integrations-and-api/api.md).

# API

> 使用 BoxHero Open API 建立自訂整合。查看有關產生 API 權杖、驗證以及即時事件傳送之速率限制的解答。

---

#### 如何產生 API 權杖？

在電腦版網頁應用程式中，前往`設定` > `整合和 API`，並產生新的 API 權杖。在 API 請求的 `Authorization` 標頭中，將其作為 Bearer 權杖使用。

![](https://assets.boxhero.io/docs/images/e6bbc8fa4eab21ec0f9ebe74893cd3a6e0c6a5d4d178ae02478ef99adbe4c4cd-2214x1431.jpg)

基礎 URL 為 `https://rest.boxhero-app.com`。

#### API 有速率限制嗎？

有。為了維持服務穩定，每個端點的限制為**每秒 5 次查詢**。如果超過此限制，您會收到附有速率限制標頭的錯誤回應。

完整的端點文件請參閱[這裡](https://rest.boxhero-app.com/docs/api)。
