apicheats.dev resend/llms.txt Raw .md
PATCH

/webhooks/{webhook_id}

Resend API

Update an existing webhook

Base URL
https://api.resend.com
Auth
Authorization: Bearer <RESEND_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 233 tokens · Vary: Accept

Critical gotchas

All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.

The to field is an array of strings, even when sending to a single recipient.

cURL

curl -X PATCH 'https://api.resend.com/webhooks/webhook-id' \  -H "Authorization: Bearer $RESEND_API_KEY" \  -H 'User-Agent: my-app/1.0' \  -H 'Content-Type: application/json' \  -d '{  "endpoint": "https://webhook.example.com/new-handler",  "events": [    "email.sent",    "email.delivered"  ],  "status": "enabled"}'
Get a free Resend API key → sponsored

Parameters

Name In Type Required Description
webhook_id path string Yes The Webhook ID.
endpoint body string No The URL where webhook events will be sent.
events body string[] No Array of event types to subscribe to.
status body string No The status of the webhook.

Response 200 OK

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