Regenerate webhook secret
Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
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
mailboxResourceIdstringRequiredExample:
Resource ID of the managed mailbox.
AC1a2b3c4d5e6f7gwebhookstring · uuidRequiredExample:
Webhook identifier (UUID v7).
019683f8-1234-7abc-8def-0123456789abResponses
200
Webhook with new secret.
application/json
Single webhook payload including the one-time secret.
401
Missing or invalid credentials.
application/json
403
Token is not authorized to manage the requested mailbox.
application/json
404
Resource not found.
application/json
500
Server-side failure.
application/json
502
Upstream service is unavailable or returned an unexpected response.
application/json
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?