mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Svi mcp krajnji točke

Sva developerska dokumentacija

Autentifikacija

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

Gdje dolazi ID vaše organizacije

Ova krajnja točka prihvaća org_id kao polje u JSON tijelu.

ID vaše organizacije nalazi se na zaslonu API ključeva u vašoj nadzornoj ploči, pored samog ključa. To je isti ID u svakom pozivu koji uputite.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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 nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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.

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
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Što je to
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 config for the connection's client, embedding the endpoint and token. The shape differs per client: Claude Code gets an http-typed server, Cursor a url +…
config_fileobjectDaWhere that client reads config — e.g. .mcp.json. null when it has no file.
commandobjectDaA one-line alternative for a client with a command line (Claude Code), else null. It embeds the token, so treat it like the token.
noteobjectDaSet when the client cannot use a bearer token at all. chatgpt_needs_oauth: ChatGPT connects by OAuth sign-in only, so this token cannot reach it.

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 422 · 429