> 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-cn/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)。
