Campaign webhook events are triggered during the lifecycle of campaigns, notifications, feed items, and push notifications. These events allow you to track delivery and engagement in real-time.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-campaigns-service-rest-api.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Campaign webhooks use the same webhook infrastructure as other CometChat webhooks. Configure your webhook endpoint in the Webhooks settings.
Event Types
| Trigger | Description |
|---|---|
after_campaign_completed | Campaign finishes sending to all targets |
after_campaign_failed | Campaign fails to deliver to its targets |
after_notification_created | Notification is created and begins dispatching |
after_feed_item_sent | In-app feed item is sent to a user |
after_feed_item_delivered | Feed item is delivered to the user’s device |
after_feed_item_read | User reads a feed item |
after_feed_item_interacted | User interacts with a feed item |
after_push_notification_sent | Push notification is sent |
after_push_notification_delivered | Push notification is delivered to the user’s device |
after_push_notification_clicked | User clicks on a push notification |
Status Flow
Feed Items:sent → delivered → read → interacted
Push Notifications: sent → delivered → clicked
Campaigns: dispatching → completed / failed
Campaign Events
after_campaign_completed
Triggered when a campaign finishes sending to all targets.after_campaign_failed
Triggered when a campaign fails to deliver to its targets.Notification Events
after_notification_created
Triggered when a notification is created and begins dispatching.Feed Item Events
after_feed_item_sent
Triggered when an in-app feed item is sent to a user.after_feed_item_delivered
Triggered when a feed item is delivered to the user’s device.after_feed_item_read
Triggered when a user reads a feed item.after_feed_item_interacted
Triggered when a user interacts with a feed item (e.g., clicks a button or link).Push Notification Events
after_push_notification_sent
Triggered when a push notification is sent.after_push_notification_delivered
Triggered when a push notification is delivered to the user’s device.after_push_notification_clicked
Triggered when a user clicks/taps on a push notification.Common Fields
| Field | Description |
|---|---|
trigger | The event name |
appId | Your CometChat app ID |
region | The region of the app |
webhook | The webhook ID that received this event |
data.campaignId | The campaign this event belongs to (null if sent directly via API) |
data.notificationId | Unique identifier for the notification batch |
data.templateId | The template used for this notification |
data.templateVersion | Version of the template |
data.receiver | The UID of the target user |
data.channelType | Delivery channel: in_app or push |
data.channelId | The channel configuration ID |
data.status | Current status of the item |
data.tags | Custom tags associated with the notification |
data.label | Custom label for categorization |
data.variables | Template variables resolved for the receiver |
data.metadata | Custom metadata attached to the notification |