agency-board

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

Add an outbound webhook.

Tous les points de terminaison agency-board

Authentification

Envoyez une clé d'API en tant que jeton du porteur (bearer token). Cet endpoint n'indique pas de permission spécifique dans la spécification, attribuez donc à votre clé le minimum requis et vérifiez la réponse plutôt que de faire des suppositions.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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> }'

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

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.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
boardId (path)UuidOuiProject board ID (UUIDv7).

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
namestringOui
urlstringOuiHTTPS only. Private and link-local addresses are refused when the socket opens, not when you save.
eventsstring[]NonEmpty means every event this board emits.
statusstring<enabled, disabled>Non

Réponse

NomTypeObligatoireQu'est-ce que c'est
idUuidOuiUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidOuiUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringOui
urlstringOui
eventsstring[]Non
statusBoardAutomationStatusOui`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_secretbooleanOuiWhether 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_failuresintegerNon
suspended_reasonstringNonWhy 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_atstringNon
last_delivered_atstringNon
last_failed_atstringNon
created_atstringNon
secretstringOuiShown ONCE, here. Store it now; rotate to get a new one.

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 404 · 422