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

Regenerate webhook secret

Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.

Regenerate webhook secret

post

Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.

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
Responses
200

Webhook with new secret.

application/json

Single webhook payload including the one-time secret.

post/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/regenerate-secret
POST /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/regenerate-secret HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "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",
    "secret": "4a6f8b2d1e9c3f7a0b5d8e2c4f1a7b3d9e6c2f8a1b4d7e0c3f6a9b2d5e8c1f4"
  }
}

Last updated

Was this helpful?