mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Tüm mcp uç noktaları

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

AdTürZorunluNe olduğu
namestringEvet
clientMcpClientHayırThe AI client a connection is for (informational).
scopesstring[]EvetRBAC 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`,…
sandboxbooleanHayır
org_idUuid | nullHayırThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullHayırOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeHayırISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerHayır

Yanıt

AdTürZorunluNe olduğu
idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringEvet
clientMcpClientEvetThe AI client a connection is for (informational).
prefixstringEvetThe token's public lookup prefix (not a secret).
scopesstring[]EvetThe RBAC permission keys this connection's token may exercise.
sandboxbooleanEvet
spend_cap_minorinteger | nullHayırOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeHayırISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerEvetThe rolling window the spend cap applies over.
last_used_atstring | nullHayır
revoked_atstring | nullHayır
created_atstringEvet
tokenstringEvetThe full `zmcp_…` token, shown exactly once.
endpointstringEvetThe MCP protocol endpoint URL to configure in the AI client.
configobjectEvetA paste-ready MCP client config snippet embedding the endpoint + token.

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 422 · 429