hosting

POST /v1/media-offload/claim

The WordPress plugin, redeeming a pairing code for a scoped token.

सर्व hosting एंडपॉइंट्स

प्रमाणीकरण

हा एंडपॉइंट सार्वजनिक आहे. याला कोणतीही क्रेडेन्शियल आणि कोणतेही ऑर्गनायझेशन लागत नाही — हे तेच आहे जे आमची स्वतःची मार्केटिंग साइट आणि AI आन्सर इंजिने वाचतात.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

curl -X POST https://api.zinndigital.com/v1/media-offload/claim \
  -H "Content-Type: application/json" \
  -d '{ "code": <string> }'

साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील API कन्सोल तुमची खरी संस्था आयडी आणि तुमची स्वतःची की आपोआप भरतो आणि लाइव्ह API विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

Called by the Zinn® Media Offload plugin on a customer's WordPress server. **This endpoint is unauthenticated**: the caller has no session with us and can name no organisation — the pairing code is what names it. Every failure — an expired code, an already-claimed code and a code that never existed — returns the same `422`. Distinguishing them would confirm to a caller that a guessed code exists, which is the only thing between them and another organisation's storage.

विनंती मुख्य भाग

नावप्रकारआवश्यकहे काय आहे
codestringहोय
plugin_versionstringनाही
site_urlstringनाही

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
tokenstringहोयShown once and never again. Stored by us only as a SHA-256 hash.
site_idstringहोय
prefixstringहोयThe key prefix this site's objects live under.
public_base_urlstringनाहीWhere a rewritten media URL points. Empty when the bucket is private, in which case the plugin must not rewrite anything.
rewrite_urlsbooleanहोय
delete_localbooleanहोय

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

422 · 429