Webhooks
Create Webhook
Creates a new webhook by adding the webhook event type and webhook URL.
For details on using webhooks in the SendLayer app, see our guide to managing webhooks.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Below is the JSON payload required for creating a new webhook. Be sure to replace the example URL with your webhook URL and choose a valid webhook event from the following options: `bounce`,`click`, `open`, `unsubscribe`, `complaint`, `delivery`.
The body is of type object
.
Response
200 - application/json
OK
A successfully created webhook returns the `NewWebhookID`
A successfully created webhook returns the NewWebhookID