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


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