אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה mcp.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
המקום שבו מזהה הארגון שלך נכנס
נקודת קצה זו מקבלת את org_id כשדה בגוף ה-JSON.
מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
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 בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-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`.
גוף הבקשה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
name | string | כן | — |
client | McpClient | לא | The AI client a connection is for (informational). |
scopes | string[] | כן | 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 | לא | — |
org_id | Uuid | null | לא | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | לא | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | לא | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | לא | — |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
id | Uuid | כן | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | כן | — |
client | McpClient | כן | The AI client a connection is for (informational). |
prefix | string | כן | The token's public lookup prefix (not a secret). |
scopes | string[] | כן | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | כן | — |
spend_cap_minor | integer | null | לא | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | לא | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | כן | The rolling window the spend cap applies over. |
last_used_at | string | null | לא | — |
revoked_at | string | null | לא | — |
created_at | string | כן | — |
token | string | כן | The full `zmcp_…` token, shown exactly once. |
endpoint | string | כן | The MCP protocol endpoint URL to configure in the AI client. |
config | object | כן | A paste-ready MCP client config snippet embedding the endpoint + token. |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 422 · 429