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.
POST /v1/vaults
新しい Vault リソースを作成します。Vault は MCP サーバーへのアクセス認証情報を安全に保管するために使用します。作成時には少なくとも 1 つの認証情報が必要です。
ヘッダー
| ヘッダー | 必須 | 説明 |
|---|
| Authorization | はい | Bearer $QODER_PAT |
| Content-Type | はい | application/json |
リクエストボディ
| フィールド | 型 | 必須 | 説明 |
|---|
display_name | string | はい | Vault 表示名 |
credentials | array | はい | 認証情報配列、少なくとも 1 つの認証情報オブジェクトを含む |
credentials 配列要素
| フィールド | 型 | 必須 | 説明 |
|---|
mcp_server_url | string | はい | MCP サーバー URL |
protocol | string | はい | プロトコルタイプ、値:sse、streamable_http |
type | string | はい | 認証情報タイプ、現在は static_bearer のみサポート |
access_token | string | はい | アクセストークン(static_bearer タイプで必須) |
リクエスト例
curl -X POST https://openapi.qoder.sh/api/v1/cloud/vaults \
-H "Authorization: Bearer $QODER_PAT" \
-H "Content-Type: application/json" \
-d '{
"display_name": "my-mcp-vault",
"credentials": [
{
"mcp_server_url": "https://example.com/mcp",
"protocol": "sse",
"type": "static_bearer",
"access_token": "your-access-token"
}
]
}'
レスポンス例
HTTP 201 Created
{
"id": "vault_019e3bb940277f0db05ab74291acf6ef",
"type": "vault",
"display_name": "my-mcp-vault",
"status": "active",
"metadata": {},
"credentials": [
{
"id": "vcred_019e3bb940297658a632dbf920057eff",
"vault_id": "vault_019e3bb940277f0db05ab74291acf6ef",
"mcp_server_url": "https://example.com/mcp",
"protocol": "sse",
"type": "static_bearer",
"status": "active",
"created_at": "2026-05-18T15:34:16.876188Z",
"updated_at": "2026-05-18T15:34:16.876188Z"
}
],
"created_at": "2026-05-18T15:34:16.874877Z",
"updated_at": "2026-05-18T15:34:16.874877Z"
}
エラーレスポンス
| HTTP | type | 説明 |
|---|
| 400 | invalid_request_error | credentials 配列欠落: "At least one credential is required when creating a vault." |
| 400 | invalid_request_error | access_token 欠落: "Field 'access_token' is required for static_bearer type." |
| 401 | TOKEN_INVALID | 認証トークンが欠落または無効 |