Add a new webhook
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
Add a new webhook
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.
Response
200 - application/json
OK
A successfully created webhook returns the NewWebhookID
A successfully created webhook returns the NewWebhookID
Example:
972