mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

ყველა mcp ენდპოინტი

ავტორიზაცია

API გასაღები გაგზავნეთ როგორც მატარებელი ტოკენი (bearer token). გასაღებს უნდა ჰქონდეს mcp.manage ნებართვა; ამის გარეშე გასაღები უარყოფილი იქნება 403 და არა 404 სტატუსით.

სwhere your organisation id goes-ის ადგილი

ესენდპოინტი იღებს org_id-ს JSON ტანის ველად.

თქვენი ორგანიზაციის ID მითითებულია თქვენი სამართავი პანელის API გასაღებების ეკრანზე, თავად გასაღებთან ახლოს. ის ერთნაირია თქვენ მიერ განხორციელებულ ყველა გამოძახებაში.

სცადეთ

შეSubstituted any value inside angle brackets with your own and the key placeholder with a key from your dashboard.

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 კონსოლი ავტომატურად ამატებს თქვენი რეალური ორგანიზაციის ID-სა და საკუთარ გასაღებს და ატარებს მოთხოვნას ცოცხალ API-ს წინააღმდეგ, რათა იხილოთ რეალური პასუხი. გაAღით ეს ენდპოინტი 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 MCP client config snippet embedding the endpoint + token.

შეცდომები, რომლებიც ამ ენდპოინტს შეუძლია დააბრუნოს

401 · 403 · 422 · 429