Webhook
Sets or edits a [webhook](#webhook), i.e. an event notification handler.
post/webhook/set.json
Request
- Base URL: https://api.unione.io/en/transactional/api/v1
- URL: https://api.unione.io/en/transactional/api/v1/webhook/set.json
- Auth: API key in header X-API-KEY
Request body
Example request
{
"url": "https://yourhost.example.com/unione-webhook",
"events": {
"spam_block": [
"*"
],
"email_status": [
"delivered",
"opened",
"clicked",
"unsubscribed",
"subscribed",
"soft_bounced",
"hard_bounced",
"spam"
]
}
}Response
Webhook set successfully.
Example response
{
"object": {
"events": {
"spam_block": [
"*"
],
"email_status": [
"delivered",
"opened",
"clicked",
"unsubscribed",
"subscribed",
"soft_bounced",
"hard_bounced",
"spam"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.