Skip to content

Messages

Send, search, paginate, inspect, and update inbound or outbound email.

01

Send email#

Provide text, HTML, or both. Use reply_to_message_id to preserve thread and email reply headers.

Shell
curl https://botinbox.dev/v0/inboxes/INBOX_ID/messages \
  -X POST -H "Authorization: Bearer $BOTINBOX_API_KEY" -H "Content-Type: application/json" \
  -d '{"to":["human@example.com"],"subject":"Hello","text":"Sent by my agent"}'

03

Read state#

Mark an individual message read or unread.

Shell
curl https://botinbox.dev/v0/inboxes/INBOX_ID/messages/MESSAGE_ID \
  -X PATCH -H "Authorization: Bearer $BOTINBOX_API_KEY" -H "Content-Type: application/json" \
  -d '{"read":true}'

04

Reply-only text#

Inbound messages include replyText with quoted history and common original-message headers removed. The untouched source remains available in text and html.