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.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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
.
OK
A successfully created webhook returns the NewWebhookID
A successfully created webhook returns the NewWebhookID