Events and Payloads
Choose an event from the categories below. You can then configure your webhook for an entire category or a specific event.
Webhook requests use POST with a JSON body. Payloads may contain IDs that you can use to retrieve full records through the REST API. Some sensitive values, such as deleted recipient email addresses, are encrypted. See Encrypted Payloads.
Subscribing to and receiving any webhook event requires only the Webhook (oa_webhooks) scope. The additional scopes listed below are needed only if you also use the corresponding API functions. See Authentication: Scopes for scope configuration.
Event Types
Each webhook request from CleverReach is a JSON object. event identifies what happened, and optional condition filters deliveries by an ID whose meaning depends on the event type: a group ID for recipient, form, filter, and group events, a flow ID for flow events, or an automation collection ID for automation events. payload holds event-specific data. The same ID can appear in both condition and payload.
The examples below show common payloads for selected events. Actual payloads may contain additional fields or differ between event types.
Recipient Events
Triggered when recipient data changes in groups/lists.
Accessing recipients through the API requires oa_receivers.
receiver.subscribed- Recipient subscribes to a list.receiver.unsubscribed- Recipient unsubscribes.receiver.created- New recipient added.receiver.updated- Recipient data modified.receiver.deleted- Recipient removed.
Example: Recipient Subscription
A subscription event for recipient group 1939. Use this group ID as the optional webhook condition.
Payload fields:
pool_id- The ID of the recipient (contact) in CleverReach. Use it to identify or retrieve this recipient.group_id- The ID of the group/list the recipient subscribed to.
{
"event": "receiver.subscribed",
"condition": "1939",
"payload": {
"pool_id": "42",
"group_id": "1939"
}
}
Example: Recipient Deletion
A deletion event with an encrypted email address from recipient group 1939. Use this group ID as the optional webhook condition.
Payload fields:
pool_id- The ID of the deleted recipient.email- The recipient's encrypted email address. Use the secret returned during webhook registration to decrypt it.group_id- The ID of the group/list the recipient was deleted from.
{
"event": "receiver.deleted",
"condition": "1939",
"payload": {
"pool_id": "42",
"email": "encrypted-email-value",
"group_id": "1939"
}
}
Form Events
Form events are deprecated. Use Flows and their associated events for handling signups and other subscriber interactions.
Triggered for form-related changes.
Accessing forms through the API requires oa_forms.
form.created- New form created.form.updated- Form modified.form.deleted- Form removed.
Example: Form Update
Example for group 1939. Use this group ID as the optional webhook condition.
Payload fields:
form_id- The ID of the form that was created, updated, or deleted.group_id- The ID of the group/list associated with the form.
{
"event": "form.updated",
"condition": "1939",
"payload": {
"form_id": "23",
"group_id": "1939"
}
}
Flow Events
Triggered for flow-related activities and interactions.
Accessing flows through the API requires oa_forms. No separate Flow scope is needed.
flow.created- New flow created.flow.updated- Flow modified.flow.deleted- Flow removed.
Example: Flow Creation
A creation event for flow 9d1d0f4e-21aa-4f17-8d28-2f0c8d46be10. Use this flow ID as the optional webhook condition.
Payload fields:
id- The ID of the flow.name- The name of the flow.playbook- The playbook used by the flow.
{
"event": "flow.created",
"condition": "9d1d0f4e-21aa-4f17-8d28-2f0c8d46be10",
"payload": {
"id": "9d1d0f4e-21aa-4f17-8d28-2f0c8d46be10",
"name": "Example flow",
"playbook": "subscribe_embedded"
}
}
Filter Events
Triggered for filter changes.
Accessing filters through the API requires oa_receivers.
filter.created- New filter created.filter.updated- Filter modified.filter.deleted- Filter removed.
Example: Filter Creation
Example for a filter associated with group 1939. Use this group ID as the optional webhook condition.
Payload fields:
filter_id- The ID of the filter that was created, updated, or deleted.group_id- The ID of the group/list associated with the filter.
{
"event": "filter.created",
"condition": "1939",
"payload": {
"filter_id": "23",
"group_id": "1939"
}
}
Group Events
Triggered for group/list changes.
Accessing groups through the API requires oa_receivers.
group.created- New group created.group.updated- Group modified.group.deleted- Group removed.
Example: Group Creation
Example for group ID 1939, used as the optional webhook condition.
Payload field:
group_id- The ID of the group/list that was created, updated, or deleted.
{
"event": "group.created",
"condition": "1939",
"payload": {
"group_id": "1939"
}
}
Automation Events
Triggered for automation workflows.
Accessing automations through the API requires oa_thea.
automation.activated- Automation started.automation.deactivated- Automation paused.automation.deleted- Automation removed.
Example: Automation Activation
Example for automation collection 123456789. Use this collection ID as the optional webhook condition.
Payload field:
collection_id- The ID of the automation collection that was activated, deactivated, or deleted.
{
"event": "automation.activated",
"condition": "123456789",
"payload": {
"collection_id": "123456789"
}
}