प्रमाणीकरण

एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। कुञ्जीसँग mcp.manage अनुमति हुनुपर्छ; अनुमति नभएको कुञ्जीलाई 404 होइन, 403 मार्फत अस्वीकार गरिन्छ।

तपाईंको संस्थाको आइडी राख्ने ठाउँ

यो इन्डपोटले JSON बडीमा एक फिल्डको रूपमा org_id लिन्छ।

तपाईंको संस्थाको आइडी (ID) तपाईंको ड्यासबोर्डमा रहेको API कुञ्जीहरू (keys) स्क्रिनमा, कुञ्जीको छेउमा हुन्छ। तपाईंले गर्ने प्रत्येक कलमा यही आइडी प्रयोग हुन्छ।

प्रयास गर्नुहोस्

कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।

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.

अनुरोध बडी

नामप्रकारआवश्यकयो के हो
namestringहुन्छ
clientMcpClientहैनThe AI client a connection is for (informational).
scopesstring[]हुन्छ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,…
sandboxbooleanहैन
org_idUuid | nullहैनThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullहैनOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeहैनISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerहैन

प्रतिक्रिया

नामप्रकारआवश्यकयो के हो
idUuidहुन्छUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringहुन्छ
clientMcpClientहुन्छThe AI client a connection is for (informational).
prefixstringहुन्छThe token's public lookup prefix (not a secret).
scopesstring[]हुन्छThe RBAC permission keys this connection's token may exercise.
sandboxbooleanहुन्छ
spend_cap_minorinteger | nullहैनOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeहैनISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerहुन्छThe rolling window the spend cap applies over.
last_used_atstring | nullहैन
revoked_atstring | nullहैन
created_atstringहुन्छ
tokenstringहुन्छThe full zmcp_… token, shown exactly once.
endpointstringहुन्छThe MCP protocol endpoint URL to configure in the AI client.
configobjectहुन्छA paste-ready config for the connection's client, embedding the endpoint and token. The shape differs per client: Claude Code gets an http-typed server, Cursor a url +…
config_fileobjectहुन्छWhere that client reads config — e.g. .mcp.json. null when it has no file.
commandobjectहुन्छA one-line alternative for a client with a command line (Claude Code), else null. It embeds the token, so treat it like the token.
noteobjectहुन्छSet when the client cannot use a bearer token at all. chatgpt_needs_oauth: ChatGPT connects by OAuth sign-in only, so this token cannot reach it.

यो इन्डपोइन्टले फर्काउन सक्ने त्रुटिहरू

401 · 403 · 422 · 429