Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na mcp.manage; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Kung saan mapupunta ang id ng iyong organisasyon
Ang endpoint na ito ay kumukuha ng org_id bilang isang field sa JSON body.
Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
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[]> }'Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
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`.
Katawan ng kahilingan
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
name | string | Oo | — |
client | McpClient | Hindi | The AI client a connection is for (informational). |
scopes | string[] | Oo | 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 | Hindi | — |
org_id | Uuid | null | Hindi | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Hindi | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Hindi | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Hindi | — |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Oo | — |
client | McpClient | Oo | The AI client a connection is for (informational). |
prefix | string | Oo | The token's public lookup prefix (not a secret). |
scopes | string[] | Oo | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Oo | — |
spend_cap_minor | integer | null | Hindi | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Hindi | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Oo | The rolling window the spend cap applies over. |
last_used_at | string | null | Hindi | — |
revoked_at | string | null | Hindi | — |
created_at | string | Oo | — |
token | string | Oo | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Oo | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Oo | A paste-ready MCP client config snippet embedding the endpoint + token. |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 422 · 429