Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung mcp.manage verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Hier kommt Ihre Organisations-ID hin
Dieser Endpunkt akzeptiert org_id als Feld im JSON-Body.
Die ID Ihrer Organisation finden Sie im Dashboard auf dem Bildschirm für API-Schlüssel direkt neben dem Schlüssel selbst. Sie ist bei jedem Ihrer Aufrufe dieselbe.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.
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[]> }'Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
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`.
Anfragekörper
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
name | string | Ja | — |
client | McpClient | Nein | The AI client a connection is for (informational). |
scopes | string[] | Ja | 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 | Nein | — |
org_id | Uuid | null | Nein | The org the connection belongs to. Defaults to the caller's sole managed org. |
spend_cap_minor | integer | null | Nein | Optional per-window paid-action budget (integer minor units). Null = no cap. |
spend_currency | CurrencyCode | Nein | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Nein | — |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Ja | — |
client | McpClient | Ja | The AI client a connection is for (informational). |
prefix | string | Ja | The token's public lookup prefix (not a secret). |
scopes | string[] | Ja | The RBAC permission keys this connection's token may exercise. |
sandbox | boolean | Ja | — |
spend_cap_minor | integer | null | Nein | Optional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap. |
spend_currency | CurrencyCode | Nein | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
spend_window_seconds | integer | Ja | The rolling window the spend cap applies over. |
last_used_at | string | null | Nein | — |
revoked_at | string | null | Nein | — |
created_at | string | Ja | — |
token | string | Ja | The full `zmcp_…` token, shown exactly once. |
endpoint | string | Ja | The MCP protocol endpoint URL to configure in the AI client. |
config | object | Ja | A paste-ready MCP client config snippet embedding the endpoint + token. |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 422 · 429