mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Sve mcp krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu mcp.manage; ključ bez nje se odbija sa 403, a ne sa 404.

Gde ide ID vaše organizacije

Ova krajnja tačka prihvata org_id kao polje u JSON telu.

ID vaše organizacije nalazi se na ekranu sa API ključevima u vašoj kontrolnoj tabli, pored samog ključa. To je isti ID u svakom pozivu koji uputite.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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

Telo zahteva

NazivVrstaObaveznoŠta je ovo
namestringDa
clientMcpClientNeThe AI client a connection is for (informational).
scopesstring[]DaRBAC 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`,…
sandboxbooleanNe
org_idUuid | nullNeThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullNeOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeNeISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerNe

Odgovor

NazivVrstaObaveznoŠta je ovo
idUuidDaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringDa
clientMcpClientDaThe AI client a connection is for (informational).
prefixstringDaThe token's public lookup prefix (not a secret).
scopesstring[]DaThe RBAC permission keys this connection's token may exercise.
sandboxbooleanDa
spend_cap_minorinteger | nullNeOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeNeISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerDaThe rolling window the spend cap applies over.
last_used_atstring | nullNe
revoked_atstring | nullNe
created_atstringDa
tokenstringDaThe full `zmcp_…` token, shown exactly once.
endpointstringDaThe MCP protocol endpoint URL to configure in the AI client.
configobjectDaA paste-ready MCP client config snippet embedding the endpoint + token.

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 422 · 429