Create a Webhook
Register a new webhook to receive event notifications.
Register a new webhook to receive real-time event notifications. You can scope the webhook to specific domains and subscribe to specific event types.
Scope: webhooks.write
Request Body
callback_urlstringrequiredThe destination URL where event payloads will be sent.
domainsinteger[]optionalOptional. Domain IDs to scope events to.
event_typesstring[]optionalOptional. Event types to subscribe to (e.g. delivered, bounced, opened).
Sample Request
Request
POST https://api.maileroo.com/v1/webhooks
Content-Type: application/json
{
"callback_url": "https://example.com/hook",
"domains": [123],
"event_types": ["delivered", "bounced"]
}Sample Response
Returns 201 Created with the created webhook object.