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
| Magaca | Nooc | Loo baahan yahay | Maxay tahay |
|---|---|---|---|
name | string | Haa | — |
client | McpClient | Maya | The AI client a connection is for (informational). |
scopes | string[] | Haa | 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 | Maya | — |
org_id | Uuid | null | Maya | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Maya | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Maya | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Maya | — |
Jawaab
| Magaca | Nooc | Loo baahan yahay | Maxay tahay |
|---|---|---|---|
id | Uuid | Haa | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Haa | — |
client | McpClient | Haa | The AI client a connection is for (informational). |
prefix | string | Haa | The token's public lookup prefix (not a secret). |
scopes | string[] | Haa | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Haa | — |
spend_cap_minor | integer | null | Maya | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Maya | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Haa | The rolling window the spend cap applies over. |
last_used_at | string | null | Maya | — |
revoked_at | string | null | Maya | — |
created_at | string | Haa | — |
token | string | Haa | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Haa | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Haa | A paste-ready MCP client config snippet embedding the endpoint + token. |
Cilladaha ay bartaani soo celin karto
401 · 403 · 422 · 429