> ## 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.

# Vault の取得

> ID で単一の Vault の詳細情報を取得します。

`GET /api/v1/cloud/vaults/{vault_id}`

ID を指定して単一の Vault の詳細情報を取得します。

## パスパラメータ

| パラメータ      | 型      | 必須 | 説明           |
| ---------- | ------ | -- | ------------ |
| `vault_id` | string | はい | Vault の一意識別子 |

## ヘッダー

| ヘッダー            | 必須 | 説明                  |
| --------------- | -- | ------------------- |
| `Authorization` | はい | `Bearer $QODER_PAT` |

## リクエスト例

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

## レスポンス例

**HTTP 200 OK**

```json theme={null}
{
  "id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "type": "vault",
  "display_name": "my-mcp-vault",
  "metadata": {},
  "archived_at": null,
  "created_at": "2026-05-18T15:34:16.874877Z",
  "updated_at": "2026-05-18T15:34:16.874877Z"
}
```

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

| フィールド          | 型              | 説明                              |
| -------------- | -------------- | ------------------------------- |
| `id`           | string         | `vault_` プレフィックス付きの Vault 一意識別子 |
| `type`         | string         | 固定値 `"vault"`                   |
| `display_name` | string         | 表示名                             |
| `metadata`     | object         | カスタムメタデータ                       |
| `archived_at`  | string \| null | アーカイブ時刻。アクティブな場合は `null`        |
| `created_at`   | string         | 作成時刻（ISO 8601）                  |
| `updated_at`   | string         | 最終更新時刻（ISO 8601）                |

## エラー

| HTTP | type              | トリガー条件                                                       |
| ---- | ----------------- | ------------------------------------------------------------ |
| 401  | `TOKEN_INVALID`   | 認証トークンが欠落または無効                                               |
| 404  | `not_found_error` | Vault が存在しないまたはアクセス不可: `"Vault '{vault_id}' was not found."` |

エラーエンベロープの詳細については[エラーリファレンス](/ja/cloud-agents/api/conventions/errors)を参照してください。

## 関連項目

<CardGroup cols={2}>
  <Card title="Vaults" icon="key" href="/ja/cloud-agents/vaults">
    シークレットを安全に保存し、Agent Session に注入する。
  </Card>
</CardGroup>
