# API送信履歴

<div align="left"><figure><img src="/files/ejBZZeDrq5sOKCU38C1E" alt=""><figcaption></figcaption></figure></div>

### 概要

* **API送信履歴**は、i-Repo Linkで実行されたAPIリクエストの履歴を一覧表示し、詳細情報を確認できる機能です。API実行時の各種情報を記録・管理し、トラブルシューティングなどに活用ください。

{% hint style="info" %}
i-Reporterの外部連携APIについての詳細は[こちら](https://cimtops-support.com/i-Reporter/ir_manuals/jp/api/ExternalSystemCoordination_Interface_Specification_jp.pdf)をご確認ください。
{% endhint %}

{% hint style="success" %}
kintoneのAPIについての詳細は[こちら](https://cybozu.dev/ja/kintone/docs/rest-api/)をご確認ください。
{% endhint %}

### 画面構成

API送信履歴画面は以下の2つの画面で構成されています。

1. **一覧画面** : 履歴一覧をグリッド形式で表示
2. **詳細画面** : 選択した履歴の詳細情報を表示

### 表示項目

#### 一覧画面の表示項目

<table><thead><tr><th width="245.11114501953125">項目</th><th>説明</th></tr></thead><tbody><tr><td>ID</td><td>履歴を識別する一意のID（自動採番）</td></tr><tr><td>登録日時</td><td>APIリクエストが実行された日時</td></tr><tr><td>ステータス</td><td>API実行結果のステータス（成功/エラー）</td></tr><tr><td>種別</td><td>履歴の種別（Webhook/システム）</td></tr><tr><td>送受信</td><td>データの送受信方向（送信/受信）</td></tr><tr><td>機能</td><td>実行された機能の種類</td></tr><tr><td>マッピングタイプ</td><td>使用されたマッピングタイプ</td></tr><tr><td>マッピングコード</td><td>マッピングのコード</td></tr><tr><td>メソッド</td><td>HTTPメソッド（GET, POST, PUT, DELETE等）</td></tr><tr><td>HTTPステータスコード</td><td>HTTPステータスコード（200, 404, 500等）</td></tr><tr><td>メッセージ</td><td>API実行結果のメッセージ</td></tr><tr><td>API URL</td><td>実行されたAPIのURLパス</td></tr><tr><td>クエリパラメータ</td><td>APIリクエストに含まれたクエリパラメータ</td></tr></tbody></table>

<figure><img src="/files/Hft9e0nht6oWmgn51lAA" alt=""><figcaption></figcaption></figure>

#### 詳細画面の表示項目

| 項目       | 説明                                        |
| -------- | ----------------------------------------- |
| ID       | 履歴を識別する一意のID（自動採番）                        |
| 登録日時     | APIリクエストが実行された日時                          |
| ステータス    | API実行結果のステータス（成功/エラー）                     |
| 種別       | 履歴の種別（Webhook/システム）                       |
| 送受信      | データの送受信方向（送信/受信）                          |
| 機能       | 実行された機能の種類                                |
| マッピングタイプ | 使用されたマッピングタイプ                             |
| マッピングコード | マッピングのコード                                 |
| メソッド     | HTTPメソッド（GET, POST, PUT, DELETE等）         |
| ステータスコード | HTTPステータスコード（200, 404, 500等）              |
| メッセージ    | API実行結果のメッセージ（表示できる行数は右下をドラッグして上下させる変更可能） |
| API URL  | 実行されたAPIのURLパス                            |
| クエリパラメータ | APIリクエストに含まれたクエリパラメータ                     |
| リモートIP   | リクエスト元のIPアドレス                             |
| リクエスト    | リクエストの詳細情報                                |

<figure><img src="/files/1MCUIqGUJBuHvPo8O0QT" alt=""><figcaption></figcaption></figure>

### 機能

#### 一覧画面の機能

* **検索・フィルタリング**: 各項目に対して検索条件を設定して履歴を絞り込み
* **ソート**: 各列をクリックしてソート順を変更（デフォルトは登録日時の降順）
* **ページング**: 履歴をページ単位で表示（5, 10, 15, 25, 50, 100, 500件/ページ）
* **詳細表示**: 一覧から履歴を選択して詳細画面を右側に表示
* **エクスポート**: 履歴データをExcel/CSV形式でエクスポート
* **手動削除**: 指定した日付以前の履歴を手動で削除
* **削除設定**: 履歴の自動削除日数を設定（0～90日）

<div align="left"><figure><img src="/files/nrKRd8YDGAiPn0p5gpBA" alt=""><figcaption></figcaption></figure></div>

### よくあるエラー例

エラーの場合は「メッセージ」欄を中心にご確認いただき、下記の詳細ページで

{% hint style="info" %}
i-Reporterの外部連携APIについての詳細は[こちら](https://cimtops-support.com/i-Reporter/ir_manuals/jp/api/ExternalSystemCoordination_Interface_Specification_jp.pdf)をご確認ください。
{% endhint %}

{% hint style="success" %}
kintoneのAPIについての詳細は[こちら](https://cybozu.dev/ja/kintone/docs/rest-api/)をご確認ください。
{% endhint %}

１..i-Reporter連携用ユーザーやログインユーザーの権限不足（メッセージ欄のエラー詳細は[こちら](https://cimtops-support.com/i-Reporter/ir_manuals/jp/api/ExternalSystemCoordination_Interface_Specification_jp.pdf)）

<div align="left"><figure><img src="/files/w8f0yHxniqHZMH4kFvWP" alt=""><figcaption></figcaption></figure></div>

２.kintoneに設定したユーザーIDやパスワードが誤っている場合（メッセージ欄のエラー詳細は[こちら](https://cimtops-support.com/i-Reporter/ir_manuals/jp/api/ExternalSystemCoordination_Interface_Specification_jp.pdf)）

<figure><img src="/files/jPfUpdkEjjKmCSETRVox" alt=""><figcaption></figcaption></figure>


---

# 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://cimtops.gitbook.io/i-repo-link-manual/system/2/4.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.
