> 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/create-webhook.md).

# Create webhook

Create a webhook for the given mailbox. The generated 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/mailboxes/{mailboxId}/webhooks" method="post" %}
<https://developers.hostinger.com/openapi/openapi.json>
{% endopenapi %}
