Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Update an existing webhook

PATCH/webhooks/{webhook_id}Update an existing webhook

Parameters

webhook_idstring · uuidpathrequired

The Webhook ID.

Request body

application/json
objectUpdateWebhookRequest
endpointstring

The URL where webhook events will be sent.

eventsarray of string

Array of event types to subscribe to.

minItems 1

Show child attributes

minItems 1

statusstring

The status of the webhook.

one of "enabled", "disabled"

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

Responses

200OKapplication/json
objectUpdateWebhookResponse
idstring · uuid

The ID of the updated webhook.

objectstring

The type of object.

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