> ## 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 の取得

> ID を指定して単一の Deployment を取得します。

`GET /api/v1/cloud/deployments/{id}`

ID を指定して完全な Deployment オブジェクトを取得します。

## パスパラメータ

| パラメータ | 型      | 説明                            |
| ----- | ------ | ----------------------------- |
| `id`  | string | Deployment ID(`dep_` プレフィックス) |

## ヘッダー

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

## リクエスト例

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

## レスポンス例

**HTTP 200 OK**

完全な Deployment オブジェクトを返します([Deployment の作成](/ja/cloud-agents/api/deployments/create) レスポンスと同じ構造)。

```json theme={null}
{
  "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": []
}
```

## エラー

| HTTP | type                   | 説明                |
| ---- | ---------------------- | ----------------- |
| 401  | `authentication_error` | PAT が無効または期限切れ    |
| 404  | `not_found_error`      | Deployment が存在しない |

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

## 関連項目

<CardGroup cols={2}>
  <Card title="Deployment 一覧" icon="list" href="/ja/cloud-agents/api/deployments/list">
    アカウント配下のすべての Deployment をページ単位で取得します。
  </Card>

  <Card title="Deployment の更新" icon="code" href="/ja/cloud-agents/api/deployments/update">
    マージパッチで Deployment のフィールドを部分更新します。
  </Card>

  <Card title="Deployment Run 一覧" icon="clock" href="/ja/cloud-agents/api/deployments/list-runs">
    この Deployment の実行履歴を確認します。
  </Card>

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