Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението mcp.manage; ключ без него се отхвърля с 403, а не с 404.

Където отива идентификаторът на вашата организация

Този краен пункт приема org_id като поле в JSON тялото.

ИД на вашата организация се намира на екрана с API ключове във вашето табло за управление, до самия ключ. Това е същият ИД във всяко заявка, която правите.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

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

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата

Детайли

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.

Тяло на заявката

ИмеТипЗадължителноКакво представлява
namestringДа
clientMcpClientНеThe AI client a connection is for (informational).
scopesstring[]Да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,…
sandboxbooleanНе
org_idUuid | nullНеThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullНеOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeНеISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerНе

Отговор

ИмеТипЗадължителноКакво представлява
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringДа
clientMcpClientДаThe AI client a connection is for (informational).
prefixstringДаThe token's public lookup prefix (not a secret).
scopesstring[]ДаThe RBAC permission keys this connection's token may exercise.
sandboxbooleanДа
spend_cap_minorinteger | nullНеOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeНеISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerДаThe rolling window the spend cap applies over.
last_used_atstring | nullНе
revoked_atstring | nullНе
created_atstringДа
tokenstringДаThe full zmcp_… token, shown exactly once.
endpointstringДаThe MCP protocol endpoint URL to configure in the AI client.
configobjectДаA 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_fileobjectДаWhere that client reads config — e.g. .mcp.json. null when it has no file.
commandobjectДаA one-line alternative for a client with a command line (Claude Code), else null. It embeds the token, so treat it like the token.
noteobjectДаSet 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.

Грешки, които този крайpoint може да върне

401 · 403 · 422 · 429