Skip to main content
PATCH
/
webhooks
/
{id}
Update Webhook
curl --request PATCH \
  --url https://api.unosend.co/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ]
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.unosend.co/llms.txt

Use this file to discover all available pages before exploring further.

id
string
required
The ID of the webhook.
url
string
The new URL to receive webhook events.
events
string[]
New list of events to subscribe to.

Request

cURL
curl -X PATCH https://api.unosend.co/webhooks/wh_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["email.delivered", "email.bounced", "email.opened"]
  }'

Response

200
{
  "success": true,
  "data": {
    "id": "wh_123",
    "url": "https://yourapp.com/webhooks/unosend",
    "events": ["email.delivered", "email.bounced", "email.opened"]
  }
}