Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Create a new webhook

POST/webhooksCreate a new webhook

Request body

application/json
objectCreateWebhookRequest
endpointstringrequired

The URL where webhook events will be sent.

eventsarray of stringrequired

Array of event types to subscribe to.

minItems 1

Show child attributes

minItems 1

Example request
{
  "endpoint": "https://webhook.example.com/handler",
  "events": [
    "email.sent",
    "email.delivered",
    "email.bounced"
  ]
}

Responses

201Createdapplication/json
objectCreateWebhookResponse
idstring · uuid

The ID of the webhook.

objectstring

The type of object.

signing_secretstring

The secret key used to verify webhook payloads.

Example response
{
  "id": "479e3145-dd38-476b-932c-529ceb705947",
  "object": "webhook",
  "signing_secret": "whsec_..."
}
Documentation menu