Skip to content

Sending and receiving

Build a full email conversation loop for an agent.

01

Send#

POST a message from an inbox. Store the returned message and thread IDs.

02

Receive#

Use a webhook for durable callbacks or the SSE event stream for a long-running process. Load the message or thread through REST before acting.

03

Reply#

Send with reply_to_message_id set to the message being answered. BotInbox reuses the thread and sets In-Reply-To when possible.