> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/developer/api-logs.md).

# API 呼び出しログ

## 機能概要 <a href="#features" id="features"></a>

API 呼び出しログでは、MaiAgent API を通じて行ったすべてのリクエストの完全な記録を確認できます。HTTP メソッド、エンドポイントパス、ステータスコード、レスポンス時間、リクエストおよびレスポンス内容などの情報が含まれます。開発者が API を連携する際のデバッグ、パフォーマンス監視、利用状況の追跡に役立ちます。

<figure><img src="/files/5k7Y1dZxtBkscxoVRspd" alt=""><figcaption><p>API 呼び出しログページ</p></figcaption></figure>

***

## ログを確認する <a href="#view-log" id="view-log"></a>

左側のメニューで <mark style="color:blue;">開発者</mark> → <mark style="color:blue;">API 呼び出しログ</mark> をクリックすると、すべての API リクエストの記録一覧を確認できます。

### 記録フィールドの説明 <a href="#log-fields" id="log-fields"></a>

| フィールド             | 説明                                                         |
| ----------------- | ---------------------------------------------------------- |
| **ID**            | リクエストの一意の識別子                                               |
| **Method**        | HTTP メソッド（GET、POST、PUT、DELETE、PATCH）。異なる色で表示されます           |
| **Endpoint**      | API エンドポイントのパス                                             |
| **Status Code**   | HTTP レスポンスステータスコード。種類に応じて色分け表示：2xx（緑色）、4xx（オレンジ色）、5xx（赤色）  |
| **Duration**      | リクエストの所要時間。速度に応じて色分け表示：<100ms（緑色）、<500ms（オレンジ色）、>500ms（赤色） |
| **Request Body**  | リクエスト内容のプレビュー                                              |
| **Response Body** | レスポンス内容のプレビュー                                              |
| **IP Address**    | リクエストの送信元 IP                                               |
| **Time**          | リクエスト時刻                                                    |

***

## フィルターと検索 <a href="#filter-and-search" id="filter-and-search"></a>

上部のフィルターバーを使って、必要な記録をすばやく見つけられます。

* **日付範囲**：開始日と終了日を選択し、特定の期間の記録を確認します
* **HTTP Method**：メソッドで絞り込みます（GET、POST、PUT、DELETE、PATCH）
* **ステータスカテゴリ**：レスポンスステータスで絞り込みます（2xx 成功、4xx クライアントエラー、5xx サーバーエラー）
* **キーワード検索**：エンドポイントパスやその他のキーワードを入力して検索します

{% hint style="info" %}
API 連携の問題を調査する際は、まず 4xx または 5xx のステータスコードで絞り込み、失敗したリクエストをすばやく特定することをおすすめします。
{% endhint %}

***

## リクエスト詳細を確認する <a href="#request-detail" id="request-detail"></a>

記録一覧で、任意の記録の右側にある表示アイコンをクリックすると、リクエストとレスポンスの完全な詳細を展開できます。完全な Request Body と Response Body が含まれており、開発者のデバッグに便利です。


---

# 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://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/developer/api-logs.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.
