Messages

Send and receive emails through the API.

View as Markdown

Sending a Message

POST /v0/inboxes/{inbox_id}/messages/send
{
  "to": ["recipient@example.com"],
  "subject": "Hello",
  "text": "Plain text content",
  "html": "<p>HTML content</p>"
}

Message Fields

FieldTypeDescription
idstringUnique message ID
inbox_idstringParent inbox (email address)
thread_idstringThread grouping ID
fromstringSender address
tostring[]Recipient addresses
ccstring[]CC addresses
bccstring[]BCC addresses
subjectstringEmail subject
textstringPlain text body
htmlstringHTML body
direction"inbound" | "outbound"Message direction

Replies

POST /v0/inboxes/{inbox_id}/messages/{message_id}/reply-all
{
  "text": "Thanks for your message!"
}

Threading headers (In-Reply-To, References) are automatically injected.