Reply to Received Email
POST /emails/receiving/:id/reply — threaded reply to the sender; plus AI reply intent.
/emails/receiving/:id/replySends a reply to the received email's sender, threaded into the same conversation (In-Reply-To the received Message-ID; subject defaults to Re: …). from must be an address on one of your verified domains.
fromstringrequiredA verified sending address.
htmlstringoptionalReply body (or text).
textstringoptionalPlain-text body (or html).
subjectstringoptionalOptional; defaults to Re: <received subject>.
import { MailBlastr } from 'mailblastr';
const mb = new MailBlastr('mb_xxxxxxxxx');
const { data, error } = await mb.emails.receiving.reply('56761188-7520-42d8-8898-ff6fc54ce618', {
"from": "Acme <hello@yourdomain.com>",
"html": "<p>Thanks — on it!</p>"
});
console.log({ data, error });Response
{
"object": "email",
"id": "6278820d-2421-42d0-85f0-80e9e28c1c69"
}The response is the outbound email's id — the reply is sent like any other email and shows up in your sent mail and logs. Provide html or text (or both); omitting both — or omitting from — returns a 422 missing_required_field. The recipient is derived from the received email's Reply-To header (falling back to its From). See Errors.
AI reply intent
Inbound replies are automatically classified as interested, neutral, or not_interested (surfaced as category on received emails and as a badge in the dashboard). Classification uses your configured AI model, with a built-in fallback — it never delays ingestion.