Ìfàṣẹ́pọ̀
Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda mcp.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.
Ibùdó àmì ìdánimọ̀ ilé-iṣẹ́ rẹ sí
Ibi-iwọle yii n gba org_id gẹgẹ bi aaye ninu ara JSON naa.
Id àjọ rẹ wa lórí ojú-ìwákòòkò àwọn bọ́tìnnì API nínú daṣibọọdú rẹ, lẹ́gbẹ̀ẹ́ bọ́tìnnì náà gan-an. Ó jẹ́ ìd kan náà nínú gbogbo ìpè tí o bá ṣe.
Gbiyanju rẹ
Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.
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[]> }'Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API
Àwọn kúlẹ̀kúlẹ̀
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`.
Akoonu ibeere naa
| Orúkọ | Iru | Tí a nílò | Kini o jẹ |
|---|---|---|---|
name | string | Bẹẹni | — |
client | McpClient | Bẹẹkọ | The AI client a connection is for (informational). |
scopes | string[] | Bẹẹni | 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 | Bẹẹkọ | — |
org_id | Uuid | null | Bẹẹkọ | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Bẹẹkọ | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Bẹẹkọ | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Bẹẹkọ | — |
Idahun
| Orúkọ | Iru | Tí a nílò | Kini o jẹ |
|---|---|---|---|
id | Uuid | Bẹẹni | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Bẹẹni | — |
client | McpClient | Bẹẹni | The AI client a connection is for (informational). |
prefix | string | Bẹẹni | The token's public lookup prefix (not a secret). |
scopes | string[] | Bẹẹni | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Bẹẹni | — |
spend_cap_minor | integer | null | Bẹẹkọ | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Bẹẹkọ | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Bẹẹni | The rolling window the spend cap applies over. |
last_used_at | string | null | Bẹẹkọ | — |
revoked_at | string | null | Bẹẹkọ | — |
created_at | string | Bẹẹni | — |
token | string | Bẹẹni | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Bẹẹni | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Bẹẹni | A paste-ready MCP client config snippet embedding the endpoint + token. |
Awọn aṣiṣe ti ibudo ipari yii le da pada
401 · 403 · 422 · 429