Update webhook
Partially update a webhook. Only the fields included in the request body are changed; omitted fields retain their current values. Pass "description": null to clear the description.
Partially update a webhook. Only the fields included in the request
body are changed; omitted fields retain their current values. Pass
"description": null to clear the description.
API Token authentication
Webhook ID (returned when the webhook was created)
019683f8-1234-7abc-8def-0123456789abFields to update. All fields are optional; only provided fields are changed. Pass "description": null to clear the description.
New human-readable name for the webhook
Updated notifierNew description, or null to clear it
Now also handles newslettersNew status for the webhook
pausedPossible values: New URL to deliver events to
https://example.com/webhooks/incomingSuccess response
Unique webhook identifier
019683f8-1234-7abc-8def-0123456789abHuman-readable name for this webhook
New message notifierOptional description of the webhook's purpose
Notifies our CRM when a new email arrivesCurrent status of the webhook
activePossible values: URL that receives webhook POST requests
https://example.com/webhooks/incoming2026-07-23T12:00:00Z2026-07-23T12:00:00ZError response
Unauthenticated response
Error response
Error response
Error response
PATCH /api/mail/v1/webhooks/{webhookId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 166
{
"name": "Updated notifier",
"description": "Now also handles newsletters",
"events": [
"message.received"
],
"status": "paused",
"url": "https://example.com/webhooks/incoming"
}{
"id": "019683f8-1234-7abc-8def-0123456789ab",
"mailbox": {
"id": "AC1a2b3c4d5e6f7g",
"address": "user@example.com"
},
"name": "New message notifier",
"description": "Notifies our CRM when a new email arrives",
"events": [
"message.received"
],
"status": "active",
"url": "https://example.com/webhooks/incoming",
"created_at": "2026-07-23T12:00:00Z",
"updated_at": "2026-07-23T12:00:00Z"
}Last updated
Was this helpful?