{
"event": "message.received",
"event_id": "evt_abc123",
"occurred_at": "2024-03-21T10:05:00.000Z",
"delivered_at": "2024-03-21T10:05:01.000Z",
"attempt": 1,
"inbox_id": "inb_92ma...",
"thread_id": "thr_xyz...",
"message": {
"id": "msg_...",
"rfc_message_id": "<original@message.id>",
"from": "sender@example.com",
"to": "inbox@openmail.sh",
"cc": [],
"subject": "Email subject",
"body_text": "Plain text body",
"attachments": [
{
"filename": "document.pdf",
"contentType": "application/pdf",
"sizeBytes": 12345,
"url": "https://api.openmail.sh/v1/attachments/msg_.../document.pdf",
"parsedText": "Invoice #2847\nDate: March 15, 2026\nAmount: $1,250.00",
"extractionMethod": "pdf"
}
],
"received_at": "2024-03-21T10:05:00.000Z"
}
}