Outbound with Engagement Awareness
Send a message, save its ID, then inspect recorded delivery and engagement signals. Engagement events are available through the API and realtime stream; they are not automatically forwarded to registered webhooks.
Send a message
Set INBOX_ID to an active inbox and replace the recipient with an address you control:
curl -X POST "https://getmail.bot/v1/inboxes/$INBOX_ID/messages" \
-H "Authorization: Bearer $MAILBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to":["recipient@example.com"],
"subject":"Requested information",
"body_text":"Here is the information you requested: https://example.com/details",
"body_html":"<p>Here is the <a href=\"https://example.com/details\">information you requested</a>.</p>"
}'
Save data.id as MESSAGE_ID. Acceptance does not prove delivery. The send schema does not expose per-message track_opens or track_clicks flags; do not add those fields expecting them to enable tracking.
Read engagement
curl "https://getmail.bot/v1/engagement/messages/$MESSAGE_ID" \
-H "Authorization: Bearer $MAILBOT_API_KEY"
curl "https://getmail.bot/v1/engagement/events?inbox_id=$INBOX_ID&event=clicked" \
-H "Authorization: Bearer $MAILBOT_API_KEY"
Engagement records use event values such as delivered, opened, clicked, bounced, and complained, plus timestamp. Deduplicate records by their ID when polling.
Sandbox engagement endpoints expose delivered events only, indicated by x-engagement-tier: delivered-only. Empty open or click results on that tier do not establish that nobody opened or clicked. Tracking also depends on delivery-provider and client behavior; image proxies and scanners can create signals without a human action.
Follow-up decisions
Stop sending to recipients who opt out. Inspect bounce details before retrying. Treat opens and clicks as signals rather than proof of intent, and use replies when a workflow needs an explicit response.
For summary counts use Engagement stats. For callback support see Webhooks.