認証
ベアラー トークンとして API キーを送信します。キーには mcp.manage 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。
組織 ID を入力する場所
このエンドポイントは、JSONボディのフィールドとして org_id を受け取ります。
組織IDは、ダッシュボードのAPIキー画面にキーのすぐ横に表示されています。これは、実行するすべての呼び出しで同じIDになります。
試してみる
アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。
curl -X POST https://api.zinndigital.com/v1/mcp/connections \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string>, "scopes": <string[]> }'ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く
詳細
Mints a per-tool MCP connection and returns the full `zmcp_…` token **once** (only its hash is stored) plus a paste-ready client config snippet. The requested `scopes` must be permissions the caller already holds in the target org — an unheld scope is a `403` (a connection can never out-scope its creator), an unknown one a `422`. An optional spend cap bounds AI-triggered paid actions. Requires `mcp.manage`.
リクエスト本文
| 名前 | タイプ | 必須 | これがその内容です |
|---|---|---|---|
name | string | はい | — |
client | McpClient | いいえ | The AI client a connection is for (informational). |
scopes | string[] | はい | RBAC permission keys to grant the token. Each must be a permission the caller holds in the target org (a connection can never out-scope its creator); an unheld scope is a `403`,… |
sandbox | boolean | いいえ | — |
org_id | Uuid | null | いいえ | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | いいえ | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | いいえ | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | いいえ | — |
返信
| 名前 | タイプ | 必須 | これがその内容です |
|---|---|---|---|
id | Uuid | はい | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | はい | — |
client | McpClient | はい | The AI client a connection is for (informational). |
prefix | string | はい | The token's public lookup prefix (not a secret). |
scopes | string[] | はい | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | はい | — |
spend_cap_minor | integer | null | いいえ | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | いいえ | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | はい | The rolling window the spend cap applies over. |
last_used_at | string | null | いいえ | — |
revoked_at | string | null | いいえ | — |
created_at | string | はい | — |
token | string | はい | The full `zmcp_…` token, shown exactly once. |
endpoint | string | はい | The MCP protocol endpoint URL to configure in the AI client. |
config | object | はい | A paste-ready MCP client config snippet embedding the endpoint + token. |
このエンドポイントが返すエラー
401 · 403 · 422 · 429