hosting

POST /v1/media-offload/claim

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

Tutti gli endpoint hosting

Autenticazione

Questo endpoint è pubblico. Non richiede credenziali né alcuna organizzazione: è ciò che leggono il nostro sito di marketing e i nostri motori di risposta basati su IA.

Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

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

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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.

Corpo della richiesta

NomeTipoObbligatorioChe cos'è
codestring
plugin_versionstringNo
site_urlstringNo

Risposta

NomeTipoObbligatorioChe cos'è
tokenstringShown once and never again. Stored by us only as a SHA-256 hash.
site_idstring
prefixstringThe key prefix this site's objects live under.
public_base_urlstringNoWhere a rewritten media URL points. Empty when the bucket is private, in which case the plugin must not rewrite anything.
rewrite_urlsboolean
delete_localboolean

Errori che questo endpoint può restituire

422 · 429