Send a test email to your webhook

Send or forward an email to a temporary address. See the JSON it produces, then send it to your HTTPS endpoint and check the response. No signup required.

Looking up your test address…

Webhook payload

This is an example. Your email’s JSON appears here when it’s ready.

example
{  "invoice_number": "INV-1042",  "amount": 249.00,  "currency": "USD"}

Send the webhook

POST
Headers (optional)

Add an email to generate the JSON you'll send.

What is email to webhook?

An inbound email webhook delivers an email to your application as an HTTP POST. MailWebhook parses the message and sends JSON containing fields such as the sender, subject, body, and attachment metadata. Your application can use that payload to open a ticket, record an invoice, or trigger another workflow.

The tester uses one sample at a time. After an eligible test, save the route and sign up to keep your hosted address. New mail sent to that address can then reach your tested webhook automatically.

See the webhook request format

From inbox to webhook in five steps

Once you’ve tested a payload, set up automatic delivery for future messages.

  1. 01

    Connect a mailbox

    After signup, connect Gmail, Microsoft 365, or IMAP, or set up a hosted mailbox.

  2. 02

    Choose which emails trigger a webhook

    Use a route rule to match the messages your application should receive, such as email sent to your support address.

  3. 03

    Parse the incoming email

    MailWebhook normalizes sender and recipient addresses, headers, bodies, timestamps, and attachment metadata into structured fields.

  4. 04

    Set the JSON your endpoint receives

    Use the standard payload or map the fields your app needs. The route you save from the tester carries over the mapping you verified.

  5. 05

    Deliver and verify

    MailWebhook sends a signed POST to your endpoint. Open Events to check the response status or inspect a failed attempt.

Example inbound email webhook payload

This Generic JSON example shows how an invoice email appears in a webhook request. Your receiver can read message.subject and body.text alongside attachment metadata. A custom mapping can send just the fields your application needs.

{
  "schema": { "name": "mailwebhook.generic", "version": "1" },
  "event": {
    "id": "6ff49aa1-7050-4ad1-95d9-2711f2ca7e88",
    "project_id": "dca29061-c4a7-4687-a8dd-24d2f26548c7",
    "route_id": "2f3713bf-88cc-46c6-aaa3-ea9d6e9d20f3",
    "created_at": "2026-06-26T10:14:32Z"
  },
  "message": {
    "message_id": "<invoice-1042@example.com>",
    "message_id_type": "original",
    "subject": "Invoice 1042",
    "date": "2026-06-26T10:13:59Z",
    "from": [{ "email": "billing@vendor.example", "name": "Vendor Billing" }],
    "to": [{ "email": "ap@company.com" }],
    "headers": {
      "message-id": "<invoice-1042@example.com>",
      "content-type": "multipart/mixed"
    }
  },
  "body": {
    "text": "Please review invoice 1042.",
    "attachments": [
      {
        "id": "9f5a1ded-538d-4f5f-a7a9-d3eacf9e58a0",
        "filename": "invoice-1042.pdf",
        "content_type": "application/pdf",
        "size": 93259,
        "is_inline": false,
        "sha256": "059a0f5260487bbe663994de1fd641401fec76ac9f6bddfe5b53ae60d4bb2d86"
      }
    ]
  },
  "meta": {
    "source": "gmail",
    "raw_size_bytes": 26546,
    "received_at": "2026-06-26T10:14:32Z"
  }
}
See the full webhook payload reference

What can you build with an inbound email webhook?

Support intake

Create a ticket with the sender, subject, and message body when email reaches your support inbox.

Invoice and order processing

Send invoice numbers, totals, or order IDs to the application that tracks them.

AI agent inboxes

Give an agent structured email events from the routes you select.

Data entry automation

Send fields from recurring emails to your CRM, ERP, or internal application.

Legacy integration

Turn emails from a reporting system into HTTP requests your application can process.

Alerts and notifications

Route email alerts to the system you use to triage incidents.

Running email-to-webhook delivery in production

With a saved route, MailWebhook handles mailbox intake, parsing, mapping, and delivery. Your application can focus on verifying the signed request and acting on the data it receives.

Email parsing and field mapping

Map fields from recurring invoices, orders, or requests into the JSON your application expects. Use the tester to check a representative message before connecting a mailbox.

Delivery and recovery

Open Events to see delivery attempts and responses. MailWebhook retries eligible failures on saved routes. When you fix a receiver or route issue, you can replay an event from its delivery history. Webhook retries and replay.

What your webhook receiver needs

  • A public HTTPS endpoint that accepts a JSON POST.
  • Verification of X-MailWebhook-Signature against the raw request body.
  • Duplicate handling using X-Idempotency-Key.
  • A 2xx response once the receiver has accepted the request.

Start free when you’re ready to automate

The free plan includes 300 emails per month. Use it to connect a mailbox and run your first recurring email-to-webhook workflow.

Email to webhook FAQ

Can I test an email webhook without signing up?
Yes. Send or forward an email to the temporary address, upload an .eml file, or paste raw email. Once the JSON is ready, you can inspect it and send a test POST to your public HTTPS endpoint.
Do I need a webhook URL to see the JSON?
You can inspect the parsed payload before entering an endpoint. Add a public HTTPS URL when you want to verify delivery and see what your receiver returns.
How do I forward email to a webhook URL?
For a one-off test, forward a sample to your hosted test address and send the JSON to your webhook URL. After an eligible delivery, save the route and sign up to keep that same address for automatic delivery.
What does Save this route keep?
After an eligible test, Save this route starts signup. Signup keeps your hosted email address, tested mapping, destination URL, and headers. New mail sent to the same address can reach your webhook without connecting another mailbox.
Can Gmail or Microsoft 365 email trigger a webhook?
Yes. Connect a Gmail or Google Workspace mailbox or a Microsoft 365 or Outlook mailbox. A route sends matching incoming messages as signed JSON to your endpoint.
Do I need to change my MX records?
You can test with a temporary address or connect an existing supported mailbox without changing its MX records. Follow the hosted mailbox setup instructions if you want to receive mail on your own domain.
What if the test request fails?
Check the status and response in the tester. For example, a 404 usually means you should check the endpoint path. Fix the issue and send the test again. For automatic delivery after signup, see the failed delivery troubleshooting guide.

Try it with an email your application should handle

Send, upload, or paste a sample. See the JSON and verify delivery before connecting a mailbox.