# API

***

#### **APIトークンはどのように生成しますか？**

デスクトップ版Webアプリで、 <mark style="color:$primary;">`設定`</mark> > <mark style="color:$primary;">`連携`</mark> に移動し、新しいAPIトークンを生成します。それをBearerトークンとして <mark style="color:$primary;">`Authorization`</mark> APIリクエストのヘッダーで使用します。

<figure><img src="/files/278148efe1820ed268f31b2fe69fc5ed44a9e754" alt=""><figcaption></figcaption></figure>

ベースURLは <mark style="color:$primary;">`https://rest.boxhero-app.com`</mark>.&#x20;

#### **APIのレート制限はありますか？**

はい。サービスを安定させるため、各エンドポイントは **1秒あたり5クエリ**に制限されています。これを超えると、レート制限ヘッダー付きのエラーレスポンスが返されます。

詳細なエンドポイントのドキュメントは [こちら](https://rest.boxhero-app.com/docs/api) をご覧ください。


---

# 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/ja/toapi/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.
