Skip to main content

Create Webhook Subscription

POST 

/v1/:slug/webhooks

Sends a POST to url for each subscribed event on a comment or asset you can see. Comment events: comment.created, comment.updated (edited, resolved, unresolved, internal flag) and comment.deleted. Asset events: asset.created (once its file has arrived), asset.updated, asset.deleted (moved to the trash), asset.restored, asset.approved and asset.unapproved. Each request follows the Standard Webhooks spec (standardwebhooks.com): verify the webhook-signature header with the returned secret over webhook-id.webhook-timestamp.body, and use webhook-id to de-duplicate — deliveries are at least once and not ordered. The body is { id, type, created_at, organization, data }. For comments, data is the record GET /v1/{slug}/comments returns, and for comment.deleted it is { token, parent_token, internal, deleted_at, targets }. For assets, data is the record GET /v1/{slug}/assets/{token} returns, and for asset.deleted it is { token, board_token, deleted_at }; asset events also carry actor ({ user_token } of who made the change, or null for automation), and asset.updated carries changes, a list of title, description, tags, board, group, version, status and fields. Groups send no events of their own: an asset joining or leaving a group sends asset.updated with group. Answer 2xx within 10 seconds. Failed deliveries are retried for about 24 hours, then the webhook is disabled and its creator emailed; a 410 answer disables it at once. A webhook only signals a change: to recover missed new and edited comments, read GET /v1/{slug}/comments?updated_since=. The feed does not list deleted comments, so to catch up on missed deletions compare your copy with a full read of the feed. Comments on an asset moved to the trash leave the feed without an event. Trashing or restoring a whole board, renaming a tag and deleting a field option send no asset events, and a webhook limited to a board is not told when an asset moves out of it.

Request​

Responses​

successful