For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update webhook

Partially update a webhook.

Update webhook

patch

Partially update a webhook.

Authorizations
AuthorizationstringRequired

Bearer authentication using API tokens in the Authorization header.

Path parameters
mailboxResourceIdstringRequired

Resource ID of the managed mailbox.

Example: AC1a2b3c4d5e6f7g
webhookstring · uuidRequired

Webhook identifier (UUID v7).

Example: 019683f8-1234-7abc-8def-0123456789ab
Body

Body for partially updating a webhook. All fields optional; only present fields are applied.

namestring · max: 255Optional

Human-readable webhook name.

Example: Renamed webhook
descriptionstring · nullableOptional

Free-text note about the webhook purpose. Send null to clear.

Example: Updated description
statusstring · enumOptional

Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries.

Example: pausedPossible values:
urlstring · uri · max: 2048Optional

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).

Example: https://example.com/webhooks/new
Responses
200

Updated webhook.

application/json

Single webhook payload.

patch/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}
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?