syndication

POST /v1/syndication/posts/{postId}/{action}

Approve, reject or retry one channel's post.

Todos os endpoints de syndication

Autenticação

Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.

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/syndication/posts/{postId}/{action} \
  -H "Authorization: Bearer zdk_live_…"

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

Approving queues the post for the next sweep; rejecting settles it `skipped` because nothing went wrong; retrying re-queues a `failed` or `needs_reconnect` post — reconnect the account first, or it will settle the same way again. Gated on `syndication.manage`.

Parâmetros

NomeTipoObrigatórioO que é
postId (path)stringSim
action (path)string<approve, reject, retry>Sim`approve` clears a held post for sending, `reject` marks it `skipped` (nothing went wrong — the customer said no), `retry` re-queues a failed one.

Resposta

NomeTipoObrigatórioO que é
idstringSim
channelstringSim
connection_idstringSim
connection_labelstringSim
statusstring<drafting, awaiting_approval, queued, posted, failed, needs_reconnect, skipped>Sim⛔⛔ `needs_reconnect` is NOT `failed`. `skipped` means the customer said no or the connection was removed — nothing went wrong.
textstringSim
remote_urlstringSimThe live post, read back from the channel where it returns one. ⛔ Empty where the vendor gives us nothing to build a URL from (a Slack incoming webhook answers the literal strin…
droppedstring[][]Sim`[[field, reason], …]` — what this channel could not carry, and WHY. The reason travels: "no image endpoint" and "the upload was refused" are different problems with different n…
errorstringSimA machine code, never a sentence.
cost_microsintegerSimWhat this post cost us, in USD micros. One line per channel per post.
character_limitintegerSim
posted_atstringSim

Erros que este endpoint pode retornar

401 · 403 · 404