WEBHOOK
route.message
{
  "type": "route.message",
  "timestamp": "2024-05-06T13:15:46.404433272Z",
  "data": {
    "id": "route-msg-12345",
    "from": "[email protected]",
    "reply_to": "[email protected]",
    "to": "[email protected]",
    "subject": "Help with my account",
    "message_id": "<[email protected]>",
    "size": 2048,
    "spam_score": 0.1,
    "bounce": false,
    "cc": "",
    "date": "Mon, 06 May 2024 13:15:46 +0000",
    "in_reply_to": "",
    "references": "",
    "auto_submitted": "",
    "html_body": "<p>I need help with my account settings.</p>",
    "plain_body": "I need help with my account settings.",
    "reply_from_plain_body": "I need help with my account settings.",
    "attachments": [],
    "headers": {
      "X-Mailer": "Gmail",
      "X-Priority": "3"
    }
  }
}

Body

application/json
type
enum<string>
required

The event type

Available options:
route.message
timestamp
string<date-time>
required

When the event occurred (ISO 8601 format)

route_id
string<uuid>
required

The route ID (the same ID as returned by the Create Route API)

data
object
required

Response

Webhook received successfully