Overview
The Campaign Stats webhook returns detailed delivery and engagement metrics for a given campaign, broken out by channel (email and SMS).Endpoint
Request Body
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
campaignId | Integer | Yes | The ID of the campaign to retrieve stats for |
Success Response
Status:200 OK
Email Stat Fields
| Field | Description |
|---|---|
Sent | Total emails sent |
Delivered | Emails successfully delivered |
Opened | Emails opened by recipients |
Clicked | Emails where a link was clicked |
Hardbounce | Emails that hard bounced (permanent delivery failure) |
Softbounce | Emails that soft bounced (temporary delivery failure) |
Unsubscribe | Recipients who unsubscribed |
Complained | Recipients who marked the email as spam |
Failed | Emails that failed to send |
SMS Stat Fields
| Field | Description |
|---|---|
Sent | Total SMS messages sent |
Delivered | SMS messages successfully delivered |
Failed | SMS messages that failed to deliver |
Error Responses
| HTTP Code | Error Message | Description |
|---|---|---|
400 | CampaignId is required | campaignId is missing from the request body |
401 | Invalid API credentials | x-api-key or x-api-secret is incorrect |
403 | Unauthorized account access | x-account-id mismatch |
429 | Rate limit exceeded. Try again later. | More than 100 requests per minute |
500 | Internal server error | Unexpected server-side issue |