> 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/api-reference/endpoints/mail/webhooks/regenerate-webhook-secret.md).

# Regenerate webhook secret

Regenerate the secret of a webhook. The previous secret is immediately invalidated. The new secret is returned only in this response and is sent as a bearer token with every delivery.

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