Autentificare
Trimiteți o cheie API ca token de tip bearer. Cheia trebuie să aibă permisiunea mcp.manage; o cheie care nu o are va fi respinsă cu 403, nu 404.
Unde merge ID-ul organizației tale
Acest punct final preia org_id ca câmp în corpul JSON.
ID-ul organizației tale se află pe ecranul cheilor API din panoul de control, lângă cheia însăși. Este același ID în fiecare apel pe care îl faci.
Încearcă
Înlocuiți tot ce se află între paranteze unghiulare cu propriile valori și substituentul cheie cu o cheie din tabloul de bord.
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[]> }'Autentificat? Consola API din panoul de control îți completează ID-ul real al organizației și propria cheie și rulează cererea în API-ul live, astfel încât să poți vedea răspunsul efectiv. Deschideți acest punct final în consola API
Detalii
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`.
Corp cerere
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
name | string | Da | — |
client | McpClient | Nu | The AI client a connection is for (informational). |
scopes | string[] | Da | 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 | Nu | — |
org_id | Uuid | null | Nu | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Nu | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Nu | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Nu | — |
Răspuns
| Nume | Tip | Obligatoriu | Ce este |
|---|---|---|---|
id | Uuid | Da | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Da | — |
client | McpClient | Da | The AI client a connection is for (informational). |
prefix | string | Da | The token's public lookup prefix (not a secret). |
scopes | string[] | Da | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Da | — |
spend_cap_minor | integer | null | Nu | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Nu | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Da | The rolling window the spend cap applies over. |
last_used_at | string | null | Nu | — |
revoked_at | string | null | Nu | — |
created_at | string | Da | — |
token | string | Da | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Da | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Da | A paste-ready MCP client config snippet embedding the endpoint + token. |
Erori pe care le poate returna acest punct final
401 · 403 · 422 · 429