Skip to main content
WEBHOOK
emailReceived
{
  "event": "email.received",
  "timestamp": "2024-01-15T10:30:00Z",
  "email": {
    "id": "inbnd_abc123def456ghi",
    "messageId": "<unique-id@sender.com>",
    "subject": "Help with my order",
    "recipient": "support@yourdomain.com",
    "from": {
      "text": "<string>",
      "addresses": [
        {
          "name": "<string>",
          "address": "<string>"
        }
      ]
    },
    "to": {
      "text": "<string>",
      "addresses": [
        {
          "name": "<string>",
          "address": "<string>"
        }
      ]
    },
    "parsedData": {
      "textBody": "<string>",
      "htmlBody": "<string>",
      "attachments": [
        {
          "filename": "<string>",
          "contentType": "<string>",
          "size": 123,
          "downloadUrl": "<string>"
        }
      ]
    }
  },
  "endpoint": {
    "id": "endp_xyz789",
    "name": "Support Webhook",
    "type": "webhook"
  }
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Body

application/json

Webhook payload sent when an email is received

event
string

The event type

Example:

"email.received"

timestamp
string<date-time>
Example:

"2024-01-15T10:30:00Z"

email
object
endpoint
object

Response

200

Webhook processed successfully