> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/emails/mail-api/webhooks/regenerate-webhook-secret.md).

# Regenerate webhook secret

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

{% openapi src="<https://api.mail.hostinger.com/openapi/openapi.json>" path="/api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/regenerate-secret" method="post" %}
<https://api.mail.hostinger.com/openapi/openapi.json>
{% endopenapi %}
