agency-board

POST /v1/agency/boards/{boardId}/webhooks

Add an outbound webhook.

Усі кінцеві точки agency-board

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

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

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

Спробувати

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

curl -X POST https://api.zinndigital.com/v1/agency/boards/{boardId}/webhooks \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "url": <string> }'

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

Деталі

HTTPS only. We mint the signing secret and return it **once, in this response**. There is no endpoint that can read it back, so keep it — rotate to get a new one. Deliveries are signed `X-Zinn-Signature: sha256=<hmac over "<timestamp>.<body>">` with `X-Zinn-Timestamp`, `X-Zinn-Delivery` and `X-Zinn-Event` beside them. The timestamp is bound INTO the signature so a captured request cannot be replayed for ever, and so a receiver cannot be tricked about which timestamp it was.

Параметри

НазваТипОбов'язковеЩо це таке
boardId (path)UuidТакProject board ID (UUIDv7).

Тіло запиту

НазваТипОбов'язковеЩо це таке
namestringТак
urlstringТакHTTPS only. Private and link-local addresses are refused when the socket opens, not when you save.
eventsstring[]НіEmpty means every event this board emits.
statusstring<enabled, disabled>Ні

Відповідь

НазваТипОбов'язковеЩо це таке
idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidТакUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringТак
urlstringТак
eventsstring[]Ні
statusBoardAutomationStatusТак`suspended` means WE paused it after repeated failure and it carries a reason the customer has not read. It is a third state rather than a reuse of `disabled`, because collapsin…
has_secretbooleanТакWhether a signing secret is stored. The secret itself is in Vault and is returned only by create and rotate; no endpoint can read it back.
consecutive_failuresintegerНі
suspended_reasonstringНіWhy we paused this webhook, in authored copy from a closed table — never an exception from our own code. It distinguishes your endpoint refusing a delivery, your endpoint being…
suspended_atstringНі
last_delivered_atstringНі
last_failed_atstringНі
created_atstringНі
secretstringТакShown ONCE, here. Store it now; rotate to get a new one.

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

401 · 403 · 404 · 422