Kimlik Doğrulama
Bearer token olarak bir API anahtarı gönderin. Anahtar mcp.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.
Kurum kimliğinizin yazılacağı yer
Bu uç nokta, JSON gövdesinde bir alan olarak org_id alır.
Kuruluş kimliğiniz (id), kontrol panelinizdeki API anahtarları ekranında, anahtarın hemen yanında yer alır. Yaptığınız her çağrıda aynı kimlik kullanılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
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[]> }'Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
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`.
İstek gövdesi
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
name | string | Evet | — |
client | McpClient | Hayır | The AI client a connection is for (informational). |
scopes | string[] | Evet | 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 | Hayır | — |
org_id | Uuid | null | Hayır | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Hayır | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Hayır | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Hayır | — |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
id | Uuid | Evet | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Evet | — |
client | McpClient | Evet | The AI client a connection is for (informational). |
prefix | string | Evet | The token's public lookup prefix (not a secret). |
scopes | string[] | Evet | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Evet | — |
spend_cap_minor | integer | null | Hayır | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Hayır | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Evet | The rolling window the spend cap applies over. |
last_used_at | string | null | Hayır | — |
revoked_at | string | null | Hayır | — |
created_at | string | Evet | — |
token | string | Evet | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Evet | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Evet | A paste-ready MCP client config snippet embedding the endpoint + token. |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 422 · 429