mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Të gjitha pikat e skajshme mcp

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen mcp.manage; një çelës pa të refuzohet me 403, jo 404.

Ku shkon id i organizatës suaj

Ky endpoint pranon org_id si fushë në trupin JSON.

ID-ja e organizatës suaj ndodhet në ekranin e çelësave API në panelin tuaj të kontrollit, pranë vetë çelësit. Është i njëjti ID në çdo thirrje që bëni.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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[]> }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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`.

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
namestringPo
clientMcpClientJoThe AI client a connection is for (informational).
scopesstring[]PoRBAC 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`,…
sandboxbooleanJo
org_idUuid | nullJoThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullJoOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeJoISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerJo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idUuidPoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringPo
clientMcpClientPoThe AI client a connection is for (informational).
prefixstringPoThe token's public lookup prefix (not a secret).
scopesstring[]PoThe RBAC permission keys this connection's token may exercise.
sandboxbooleanPo
spend_cap_minorinteger | nullJoOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeJoISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerPoThe rolling window the spend cap applies over.
last_used_atstring | nullJo
revoked_atstring | nullJo
created_atstringPo
tokenstringPoThe full `zmcp_…` token, shown exactly once.
endpointstringPoThe MCP protocol endpoint URL to configure in the AI client.
configobjectPoA paste-ready MCP client config snippet embedding the endpoint + token.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 422 · 429