> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Webhook

> Register a webhook endpoint for real-time delivery events.

Creates a webhook subscription to receive HTTP POST event notifications.

### Body

<ParamField body="url" type="string" required>
  HTTPS endpoint where events should be delivered.
</ParamField>

<ParamField body="events" type="string[]" required>
  Events to subscribe to: `email.sent`, `email.delivered`, `email.bounced`, `email.complained`, `email.opened`, `email.clicked`.
</ParamField>

### Response

<ResponseField name="id" type="string">Webhook ID (`whk_...`)</ResponseField>
<ResponseField name="signing_secret" type="string">Secret used to sign and verify payloads</ResponseField>


## Related topics

- [Create Campaign](/api/campaigns/create-campaign.md)
- [Create Template](/api/templates/create-template.md)
- [Delete Webhook](/api/webhooks/delete-webhook.md)
- [List Webhooks](/api/webhooks/list-webhooks.md)
- [Create Domain](/api/domains/create-domain.md)
