mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Dhammaan mcp bixiyayaasha

Xaqiijinta aqoonsiga

U dir furaha API ah calaamad dusha ah (bearer token). Furaha waa inuu wataa ruqadda mcp.manage; furaha aan wadan waxaa loo diidayaa 403, ee ma aha 404.

Meesha aqoonsiga ururkaagu galayo

Boggan waxaa uu qaataa org_id oo ah goob ku jirta JSON body.

Aqoonsiga ururkaagu wuxuu ku yaallaa shaashada furayaasha API ee dashboard-kaaga, oo ku xiga furaha laftiisa. Waa isku aqoonsi wicitaan kasta oo aad sameyso.

Isku day

Ku beddel wax kasta oo ku dhex jira qeebaha xaglaha ah qiimayaashaada, sidoo kalena haystaaha furaha ku beddel fure ka dhex muuqda dashboordigaaga.

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

Ma sign-garaysay? Qalabka API ee ku jira dashboard-kaagu wuxuu buuxiyaa aqoonsigaaga ururka ee dhabta ah iyo furahaaga gaarka ah, wuxuuna ku shaqeysiiyaa codsiga API-ga nool si aad u aragto jawaabta dhabta ah. Kani ka fur barta kontoroolka ee API

Faahfaahin

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

Codsiga jidhkiisa

MagacaNoocLoo baahan yahayMaxay tahay
namestringHaa
clientMcpClientMayaThe AI client a connection is for (informational).
scopesstring[]HaaRBAC 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`,…
sandboxbooleanMaya
org_idUuid | nullMayaThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullMayaOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeMayaISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerMaya

Jawaab

MagacaNoocLoo baahan yahayMaxay tahay
idUuidHaaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringHaa
clientMcpClientHaaThe AI client a connection is for (informational).
prefixstringHaaThe token's public lookup prefix (not a secret).
scopesstring[]HaaThe RBAC permission keys this connection's token may exercise.
sandboxbooleanHaa
spend_cap_minorinteger | nullMayaOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeMayaISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerHaaThe rolling window the spend cap applies over.
last_used_atstring | nullMaya
revoked_atstring | nullMaya
created_atstringHaa
tokenstringHaaThe full `zmcp_…` token, shown exactly once.
endpointstringHaaThe MCP protocol endpoint URL to configure in the AI client.
configobjectHaaA paste-ready MCP client config snippet embedding the endpoint + token.

Cilladaha ay bartaani soo celin karto

401 · 403 · 422 · 429