Handle inbound email webhooks
POST /api/v1/webhooks/email-inbound
POST
/api/v1/webhooks/email-inbound
Receives inbound email events from the email routing provider (Cloudflare Email Workers, Postmark, etc). Always returns 200 to prevent retries.
Authorizations
Request Body
Any of:
Inbound email webhook payload.
Attributes: from_address: Sender email address. to_address: Recipient address (agent mailbox). subject: Email subject line. body_text: Plain-text body. body_html: Optional HTML body. message_id: Email message-ID header. headers: Additional headers. attachments: Raw attachment dicts (filename, content_type, content).
object
attachments
Array<object>
object
key
additional properties
any
headers
object
key
additional properties
any
null
Responses
200
Successful Response
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string