Webhook Responses
Webhook
These are the API calls made to your public API to inform you of occurence of events mentioned below.
How do they work?
Whenver an event from the list mentioned below occurs, a webhook response is send to the public API you provided at the time of onboarding.
When is a webhook called
Event | Description |
---|---|
SEND | Event triggered when email is sent successfully |
DELIVERED | Event triggered when email gets delivered |
BOUNCED | Event triggered if email gets bounced |
OPEN | Event triggered when email is opened by the recipients |
CLICK | Event triggered if recipients clicks on a redirect link present in the email |
UNSUBSCRIBE | Event triggered if receiver clicks on the unsubscribe link |
SPAM | Event triggered if email gets marked as spam |
Request
- application/json
Body
Possible values: [SEND
, DELIVERED
, BOUNCED
, OPEN
, CLICK
, UNSUBSCRIBE
, SPAM
]
Represents the type of event that has occurred.
Possible values: [HARD_BOUNCED
, SOFT_BOUNCED
]
Represents the sub-type of the main event. For example, in the case of a bounced event we can have hard or soft bounces.
A string representing Unique identification(UUID) for each webhook request
Receiver's email address
Request Id provided sent as response to Send Email
Campaign Id provided to Send Email to track the campaign. If not provided, then same as request Id
Time in nano seconds as string
Represents the category of bounce.
Represents the description of bounce(dsn_diag).
Represents the status of bounce(dsn_status).