hosting
POST /v1/media-offload/claim
The WordPress plugin, redeeming a pairing code for a scoped token.
Autenticação
Este endpoint é público. Ele não requer credenciais nem organização — é o que nosso próprio site de marketing e os mecanismos de resposta de IA leem.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X POST https://api.zinndigital.com/v1/media-offload/claim \
-H "Content-Type: application/json" \
-d '{ "code": <string> }'Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
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 da requisição
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
code | string | Sim | — |
plugin_version | string | Não | — |
site_url | string | Não | — |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
token | string | Sim | Shown once and never again. Stored by us only as a SHA-256 hash. |
site_id | string | Sim | — |
prefix | string | Sim | The key prefix this site's objects live under. |
public_base_url | string | Não | Where a rewritten media URL points. Empty when the bucket is private, in which case the plugin must not rewrite anything. |
rewrite_urls | boolean | Sim | — |
delete_local | boolean | Sim | — |
Erros que este endpoint pode retornar
422 · 429