Webhooks
You can set up webhooks for common events and actions from the moderation queue. This is useful if you want to integrate the queue with your own systems. Webhooks are configured under integrations in your dashboard
The webhook payload will be sent as a POST
request to the URL you specify.
The webhooks require your server to respond with a 200 status code within 5 seconds, otherwise they will be retried. Webhooks are tried at most 5 times.
Webhook payload
The unique id of the event.
The type of the webhook. Can be QUEUE_ITEM_NEW
, QUEUE_ITEM_ACTION
or
QUEUE_ITEM_COMPLETED
.
The timestamp of when the webhook was sent.
The content item that triggered the webhook.
The queue that the content item is in.
The action that was taken on the content item if the type is
QUEUE_ITEM_ACTION
.
Webhook signing
You can verify that the webhook is coming from us by comparing the signature of the payload with the signature provided in the modapi-signature
header.
The signature is a HMAC SHA256
hash of the payload using your webhook secret as the key. Find you webhook secret under integrations in your dashboard.
Preventing replay attacks
To prevent replay attacks, you can use the timestamp in the payload of the webhook to ensure that the webhook is not older than 5 minutes.
Was this page helpful?