Webhooks
Create a webhook
post/webhooks
Request body
Example request
{
"url": "http://requestb.in/173lyyx1",
"description": "Webhook triggered on unsubscription",
"events": [
"unsubscribed"
],
"type": "marketing",
"domain": "example.com",
"batched": true,
"auth": {
"type": "bearer",
"token": "test-auth-token1234"
},
"headers": [
{
"key": "cf-secret",
"value": "test-header-value"
}
]
}Response
Webhook created
Example response
{
"id": 122
}