syndication

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

Approve, reject or retry one channel's post.

Усі кінцеві точки syndication

Уся документація для розробників

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ця кінцева точка не вказує конкретного дозволу в специфікації, тому надайте своєму ключу мінімально необхідні права та перевірте відповідь, замість того щоб припускати.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X POST https://api.zinndigital.com/v1/syndication/posts/{postId}/{action} \
  -H "Authorization: Bearer zdk_live_…"

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

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.

Параметри

НазваТипОбов'язковеЩо це таке
postId (path)stringТак
action (path)string<approve, reject, retry>Такapprove clears a held post for sending, reject marks it skipped (nothing went wrong — the customer said no), retry re-queues a failed one.

Відповідь

НазваТипОбов'язковеЩо це таке
idstringТак
channelstringТак
connection_idstringТак
connection_labelstringТак
statusstring<drafting, awaiting_approval, queued, posted, failed, needs_reconnect, skipped>Так⛔⛔ needs_reconnect is NOT failed. skipped means the customer said no or the connection was removed — nothing went wrong.
textstringТак
remote_urlstringТакThe 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 string…
droppedstring[][]Так[[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…
errorstringТакA machine code, never a sentence.
cost_microsintegerТакWhat this post cost us, in USD micros. One line per channel per post.
character_limitintegerТак
posted_atstringТак

Помилки, які може повертати ця кінцева точка

401 · 403 · 404