hosting

POST /v1/media-offload/claim

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

Tous les points de terminaison hosting

Authentification

Cet point de terminaison est public. Il ne nécessite aucun identifiant ni aucune organisation : c'est ce que notre propre site marketing et nos moteurs de réponse IA lisent.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

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.

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
codestringOui
plugin_versionstringNon
site_urlstringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
tokenstringOuiShown once and never again. Stored by us only as a SHA-256 hash.
site_idstringOui
prefixstringOuiThe key prefix this site's objects live under.
public_base_urlstringNonWhere a rewritten media URL points. Empty when the bucket is private, in which case the plugin must not rewrite anything.
rewrite_urlsbooleanOui
delete_localbooleanOui

Erreurs que cet point de terminaison peut renvoyer

422 · 429