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

# Deployment 一覧

> 現在のアカウント配下の Deployment 一覧をカーソルページネーション付きで取得します。

`GET /api/v1/cloud/deployments`

現在のアカウント配下のすべての Deployment をカーソルページネーション付きで取得します。結果は作成時刻の降順(新しい順)でソートされます。アーカイブ済み Deployment はデフォルトで除外されます。

## ヘッダー

| 名称              | 必須 | 値                   |
| --------------- | -- | ------------------- |
| `Authorization` | はい | `Bearer $QODER_PAT` |

## クエリパラメータ

| パラメータ              | 型       | 必須  | 説明                                                                       |
| ------------------ | ------- | --- | ------------------------------------------------------------------------ |
| `limit`            | integer | いいえ | 返却件数の上限。デフォルト 20、範囲は 1〜100。100 を超える値は `400 invalid_request_error` を返します。 |
| `page`             | string  | いいえ | `next_page` が返すカーソル値。`before_id` や `after_id` と併用しないでください。               |
| `after_id`         | string  | いいえ | カーソルページネーション: この ID 以降のレコードを返す                                           |
| `before_id`        | string  | いいえ | カーソルページネーション: この ID 以前のレコードを返す                                           |
| `status`           | string  | いいえ | ステータスでフィルタリング: `active`、`paused`                                         |
| `include_archived` | boolean | いいえ | アーカイブ済み Deployment を含める。デフォルトは `false`。                                  |
| `agent_id`         | string  | いいえ | Agent ID でフィルタリング                                                        |
| `created_at[gte]`  | string  | いいえ | この RFC3339 タイムスタンプ以降に作成された Deployment を返す                                |
| `created_at[lte]`  | string  | いいえ | この RFC3339 タイムスタンプ以前に作成された Deployment を返す                                |

## リクエスト例

```bash theme={null}
curl -X GET "https://api.qoder.com/api/v1/cloud/deployments?limit=2" \
  -H "Authorization: Bearer $QODER_PAT"
```

## レスポンス例

**HTTP 200 OK**

```json theme={null}
{
  "data": [
    {
      "agent": {
        "id": "agent_019eb4d4a06d747c865d5800b9c57ae2",
        "type": "agent",
        "version": 1
      },
      "archived_at": null,
      "created_at": "2026-06-14T08:53:32Z",
      "description": "Deployment created for API documentation verification",
      "environment_id": "env_019e64e01a137caf953ac2ac7b42ec5c",
      "environment_variables": "",
      "id": "dep_019ec556114c78f8b60ee34fcb98bf59",
      "initial_events": [
        {
          "content": [
            {
              "type": "text",
              "text": "Generate today's status report"
            }
          ],
          "type": "user.message"
        }
      ],
      "metadata": {},
      "name": "api-doc-verification-deployment",
      "paused_reason": null,
      "resources": [],
      "schedule": {
        "expression": "0 9 * * *",
        "timezone": "Asia/Shanghai",
        "type": "cron",
        "upcoming_runs_at": [
          "2026-06-15T01:00:00Z",
          "2026-06-16T01:00:00Z",
          "2026-06-17T01:00:00Z",
          "2026-06-18T01:00:00Z",
          "2026-06-19T01:00:00Z"
        ]
      },
      "status": "active",
      "type": "deployment",
      "updated_at": "2026-06-14T08:53:32Z",
      "vault_ids": []
    }
  ],
  "first_id": "dep_019ec556114c78f8b60ee34fcb98bf59",
  "has_more": true,
  "last_id": "dep_019ec51604b87aaea12568c9ab7b7025",
  "next_page": "dep_019ec51604b87aaea12568c9ab7b7025"
}
```

## レスポンスフィールド

| フィールド       | 型              | 説明                                                          |
| ----------- | -------------- | ----------------------------------------------------------- |
| `data`      | array          | Deployment オブジェクトの配列                                        |
| `first_id`  | string         | 現在ページ先頭レコードの ID                                             |
| `last_id`   | string         | 現在ページ末尾レコードの ID                                             |
| `has_more`  | boolean        | さらにレコードがあるかどうか                                              |
| `next_page` | string or null | 次ページのカーソル値(`has_more` が true のときは `last_id` と同じ、それ以外は null) |

`next_page` を次回リクエストの `page` パラメータとして使用すると、後方ページネーションを実現できます。

## エラー

| HTTP | type                   | 説明             |
| ---- | ---------------------- | -------------- |
| 401  | `authentication_error` | PAT が無効または期限切れ |

完全なエラーエンベロープについては [エラー](/ja/cloud-agents/api/conventions/errors) を参照してください。

## 関連項目

<CardGroup cols={2}>
  <Card title="Deployment の作成" icon="plus" href="/ja/cloud-agents/api/deployments/create">
    Agent を cron スケジュールにバインドした新しい Deployment を作成します。
  </Card>

  <Card title="Deployment の取得" icon="layer-group" href="/ja/cloud-agents/api/deployments/get">
    ID を指定して単一の Deployment 詳細を取得します。
  </Card>

  <Card title="全 Deployment Run 一覧" icon="clock" href="/ja/cloud-agents/api/deployments/list-all-runs">
    すべての Deployment にまたがる実行履歴を確認します。
  </Card>

  <Card title="エラー" icon="circle-exclamation" href="/ja/cloud-agents/api/conventions/errors">
    共通のエラーエンベロープ仕様を参照します。
  </Card>
</CardGroup>
