> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AIヘルプデスク API の概要

> AIヘルプデスク API の概要です。セッション・ナレッジ・プレイブックなどを参照し、管理者の API キーでナレッジとプレイブックを更新できる REST API です。

> [!NOTE]
>
> AIヘルプデスク API のご利用は、再開しました。詳しくは[お知らせ](https://support.i.moneyforward.com/announcements/important.md#2026-11-27)をご覧ください。

リクエストには、AIヘルプデスクの管理画面で作成した API キーが必要です。

> [card] ベース URL
>
> `https://assist.i.moneyforward.com/api/v1`

> [card] [認証](https://support.i.moneyforward.com/api-reference/ai-helpdesk/authentication.md)
>
> `X-API-Key` ヘッダーに API キーを指定します。

> [card] [OpenAPI](https://assist.i.moneyforward.com/api/v1/openapi.json)
>
> OpenAPI 3.1.0 の仕様書を、API キーなしで取得できます。

## できること

| 対象 | 参照 | 更新 |
| - | - | - |
| セッション | 一覧、詳細、ステータス別・担当タイプ別の件数、セッションから生まれた改善提案 | なし |
| ナレッジ | 一覧、詳細、フォルダー | 作成、更新、削除 |
| プレイブック | 一覧、詳細、改善提案 | 作成、更新、削除、改善提案の適用・破棄 |
| 連携 | MCP 連携の一覧、詳細、ツール | なし |
| 設定 | AI エージェントの設定、管理設定とチームメンバー | なし |
| 通知 | 組織全体の通知、未読の件数 | なし |

更新と、設定・通知の参照には、**管理者** の API キーが必要です。
キーの役割ごとにできることは、[API キーの権限](https://support.i.moneyforward.com/api-reference/ai-helpdesk/authentication.md#permissions)をご覧ください。

> [!WARNING]
>
> 管理者の API キーでは、ナレッジとプレイブックを作成・更新・削除できます。
> 参照だけに使うときは、**オペレーター** の API キーを作成してください。

## 最初のリクエスト

**1. API キーを作成する**

AIヘルプデスクの管理画面で API キーを作成します。
手順は [API キーを作成する](https://support.i.moneyforward.com/api-reference/ai-helpdesk/authentication.md#create-api-key)をご覧ください。

**2. リクエストを送る**

セッションの件数を取得するエンドポイントに、`X-API-Key` ヘッダーを付けてリクエストを送ります。

```bash theme={null}
curl -H "X-API-Key: <API_KEY>" \
  https://assist.i.moneyforward.com/api/v1/sessions/stats
```

**3. レスポンスを確認する**

成功すると、`ok` が `true` の JSON が返ります。

```json theme={null}
{
  "ok": true,
  "stats": {
    "total": 42,
    "byStatus": {
      "open": 5,
      "in_progress": 3,
      "pending_approval": 1,
      "resolved": 33
    },
    "byAssigneeType": {
      "unassigned": 2,
      "ai_agent": 30,
      "human_agent": 9,
      "requester": 1
    }
  }
}
```

## ドキュメントの構成

| ページ | 内容 |
| - | - |
| [認証](https://support.i.moneyforward.com/api-reference/ai-helpdesk/authentication.md) | API キーの作成、権限、リクエストへの付け方 |
| [ページング](https://support.i.moneyforward.com/api-reference/ai-helpdesk/pagination.md) | 一覧の取得件数と、ナレッジのカーソル |
| [エラー](https://support.i.moneyforward.com/api-reference/ai-helpdesk/errors.md) | エラーレスポンスの形式と主なエラー |
| [レート制限](https://support.i.moneyforward.com/api-reference/ai-helpdesk/rate-limits.md) | リクエスト数の目安 |
| [AI でコードを書く](https://support.i.moneyforward.com/api-reference/ai-helpdesk/exploring-with-ai.md) | OpenAPI の仕様書を AI に渡して使う方法 |
| [サポート](https://support.i.moneyforward.com/api-reference/ai-helpdesk/support.md) | 問い合わせる前の確認と問い合わせ先 |

エンドポイントごとのパラメータとレスポンスは、サイドバーの **リファレンス** で確認できます。
API キーなしで開ける [API ドキュメント](https://assist.i.moneyforward.com/api/v1/docs)でも、同じ内容を確認できます。

ファイアウォールやプロキシでアウトバウンド通信を制限している環境では、[AIヘルプデスクの接続に必要なURL・ポート番号](https://support.i.moneyforward.com/ai-helpdesk/troubleshooting/network-requirements.md#web-api)を参照してください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.