Skip to content

List replies

GET /emails/{id}/replies

When recipients reply to one of your sent emails, 3AVA Mail’s inbound matcher threads the reply back to the original send. This endpoint returns all replies for one outbound email — the full conversation thread.

Terminal window
curl https://mail.3ava.com/api/emails/a1b2c3d4-.../replies \
-H "Authorization: Bearer am_YOUR_KEY"
{
"data": [
{
"id": "ee11...",
"from_address": "[email protected]",
"to_address": "[email protected]",
"subject": "Re: Your receipt",
"body_text": "Thanks! Quick question — ...",
"body_html": "<p>Thanks! Quick question — ...</p>",
"received_at": "2026-04-22T23:01:00Z",
"match_method": "heuristic",
"ai_draft": "Hi, happy to help — ..."
}
]
}

match_method is heuristic (matched via In-Reply-To header / VERP address) or ml (matched by subject + sender similarity).

ai_draft is an AI-suggested reply, generated when the inbound is classified as needing a human response. It’s a suggestion only — nothing is sent automatically.

Inbound emails are matched to their original send using:

  1. The In-Reply-To and References headers (highest precedence).
  2. The VERP envelope address (bounce+{email_id}@yourdomain).
  3. Subject + sender heuristics (lowest precedence).

Unmatched inbound mail still lands in /inbound but with original_email_id: null.