Update webhook
Partially update a webhook.
Partially update a webhook.
Bearer authentication using API tokens in the Authorization header.
Resource ID of the managed mailbox.
AC1a2b3c4d5e6f7gWebhook identifier (UUID v7).
019683f8-1234-7abc-8def-0123456789abBody for partially updating a webhook. All fields optional; only present fields are applied.
Human-readable webhook name.
Renamed webhookFree-text note about the webhook purpose. Send null to clear.
Updated descriptionDelivery state. Only active webhooks receive events; paused keeps config but stops deliveries.
pausedPossible values: HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as Authorization: Bearer <secret>. Must be a public domain name (no IPs or internal hosts).
https://example.com/webhooks/newUpdated webhook.
Single webhook payload.
Missing or invalid credentials.
Token is not authorized to manage the requested mailbox.
Resource not found.
Request payload failed validation. params maps field name to an array of error messages.
Server-side failure.
Upstream service is unavailable or returned an unexpected response.
PATCH /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook} HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"name": "Renamed webhook",
"description": "Updated description",
"events": [
"message.received"
],
"status": "paused",
"url": "https://example.com/webhooks/new"
}{
"data": {
"id": "019683f8-1234-7abc-8def-0123456789ab",
"accountResourceId": "AC1a2b3c4d5e6f7g",
"mailbox": "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",
"createdAt": "2026-04-07T12:00:00+00:00",
"updatedAt": "2026-04-07T12:00:00+00:00"
}
}Last updated
Was this helpful?