> ## Documentation Index
> Fetch the complete documentation index at: /docs/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 via the Mailofly API.

### Body

**url** `string` *required*

HTTPS endpoint where events should be delivered.

**events** `string[]` *required*

Events to subscribe to: `email.sent`, `email.delivered`, `email.bounced`, `email.complained`, `email.opened`, `email.clicked`.

### Response

**id** `string`

Webhook ID (`whk_...`)

**signing\_secret** `string`

Secret used to sign and verify payloads


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.