> ## 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.

# Configure webhook

> Set up HTTP POST endpoints to receive parsed incoming email payloads.

# Configure Inbound Webhooks

When an email arrives at your domain, Mailofly sends an HTTP POST request with the parsed payload to your configured webhook URL.

## Webhook Payload Structure

```json theme={null}
{
  "event": "email.received",
  "data": {
    "id": "rcv_01J8G52XYZ",
    "from": "sender@external.com",
    "to": ["support@yourdomain.com"],
    "subject": "Need help with integration",
    "text": "Hello, I encountered an issue...",
    "html": "<p>Hello, I encountered an issue...</p>",
    "attachments": []
  }
}
```

## Security & Signatures

Verify incoming payloads using the `Mailofly-Signature` header and your webhook signing secret.


## Related topics

- [Examples](/examples/index.md)
- [Delete Webhook](/api/webhooks/delete-webhook.md)
- [List Webhooks](/api/webhooks/list-webhooks.md)
- [Create Webhook](/api/webhooks/create-webhook.md)
- [Retrieve Webhook](/api/webhooks/get-webhook.md)
