Tabbatar da Asali
Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin mcp.manage; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.
Inda ID ɗin kungiyar ku ke zuwa
Wannan ma'ajiyar tana karɓar org_id a matsayin fili a cikin jikin JSON.
Ana samun lambar kungiyar ku a kan shafin maɓallan API a cikin madanninku, kusa da maɓallin kansa. Shi ne lambar da ta dace a kowane kiran da kuka yi.
Gwada
May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.
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[]> }'An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API
Bayani
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`.
Jikin buƙata
| Suna | Nau'i | Ana buƙata | Abin da yake |
|---|---|---|---|
name | string | Eh | — |
client | McpClient | A'a | The AI client a connection is for (informational). |
scopes | string[] | Eh | 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`,… |
sandbox | boolean | A'a | — |
org_id | Uuid | null | A'a | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | A'a | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | A'a | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | A'a | — |
Martani
| Suna | Nau'i | Ana buƙata | Abin da yake |
|---|---|---|---|
id | Uuid | Eh | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Eh | — |
client | McpClient | Eh | The AI client a connection is for (informational). |
prefix | string | Eh | The token's public lookup prefix (not a secret). |
scopes | string[] | Eh | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Eh | — |
spend_cap_minor | integer | null | A'a | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | A'a | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Eh | The rolling window the spend cap applies over. |
last_used_at | string | null | A'a | — |
revoked_at | string | null | A'a | — |
created_at | string | Eh | — |
token | string | Eh | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Eh | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Eh | A paste-ready MCP client config snippet embedding the endpoint + token. |
Kuskuren da wannan matsaya za ta iya maido wa
401 · 403 · 422 · 429