Dhesend

Webhook

Create Webhook

Learn how to create Webhook using Dhesend API.

import Dhesend from 'dhesend';

const dhesend = new Dhesend('dhe_fdd03c4eb1');

dhesend.webhook.create({
    endpoint: "https://testing.com/webhook",
    events: ["email:bounced"]
})
{
  "id": "a19ae25a-32ef-4f17-b5c8-5c3cf37471b3",
  "secret": "dws_51bc730b47c20193"
}
Endpoint
This endpoint is used to create Webhooks.
POST webhook/create
Path parameters
endpointstringrequired
The endpoint of Webhook.
eventsarrayrequired
Events to be listened.

Possible values:email:sentemail:deliveredemail:openedemail:clickedemail:bouncedemail:failedemail:complaint

Dhesend @ 2024 - Made with ❤ by  DHEM