Events
Most events have filters, so the webhook fires only when conditions match, for example only for one program or only when an affiliate initiated the event. Open Add filter in the trigger to see the filters of an event.
Set up a webhook
1
Create a trigger
Open Triggers in your dashboard and click New trigger. Choose the event.
2
Add filters
Optional. Narrow down when the trigger fires.
3
Choose the webhook type
- Webhook sends the object in the same format as the API reference, for example a conversion for Conversion created.
- Webhook (custom) lets you compose the request yourself. Use merge tags from the
{…}menu next to the field to insert event data.
4
Save
The webhook starts firing on the next matching event.
Handling webhooks
- Respond with a
2xxstatus quickly and do the work asynchronously. - Make your handler idempotent: use the object’s
idto skip events you have already processed. - Use the REST API to fetch the current state of an object when you need more than the payload.