API referenceEmails
Send an email
Persist and enqueue a send. Returns 202 with id and status.
POST
Persist and enqueue a send. Returns 202 with id and status.
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
Idempotency-Key?stringStored 24h. Same key + body returns the original response.
application/json- body
from*stringto*array<>cc?array<>bcc?array<>reply_to?stringsubject*stringhtml?stringtext?stringtemplate_id?stringvariables?attachments?array<>headers?tags?array<>metadata?scheduled_at?stringFormat
date-timedry_run?booleanForces the sandbox transport for this message.
stream?StreamValue in
"transactional""broadcast""agent"agent_id?stringthread_id?stringAccepted
application/json- response
id*stringstatus*EmailStatusValue in
"queued""pending_approval""scheduled""sending""sent""delivered""bounced""complained""failed""suppressed""rejected""cancelled"curl -X POST 'https://api.mailroom.gosuevals.com/v1/emails' \ -H 'Content-Type: application/json' \ -d '{ "from": "billing@acme.dev", "to": [ "ada@example.com" ], "subject": "Invoice 1842", "text": "Thanks for being a customer.", "stream": "transactional"}'Example Response
{ "id": "eml_01HZX", "status": "queued"}