mailvina
DocsEmails ▾

API reference

Emails API

Send email

POST/emails
FieldTypeDescription
fromrequiredstringSender, "Name <email@domain>". Domain must be verified.
torequiredstring | string[]Recipients (max 50 across to, cc, bcc).
subjectrequiredstringSubject line.
htmlstringHTML body.
textstringPlain text body. Generated from HTML if omitted.
cc / bccstring | string[]Copy recipients.
reply_tostring | string[]Reply-to address.
headersobjectCustom headers.
attachmentsobject[]{ filename, content (base64), content_type }
tagsobject[][{ name, value }]
scheduled_atstringISO 8601, up to 30 days ahead.
templateobject{ id, variables } instead of html/subject.
{
  "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}

Send batch

POST/emails/batch

Body is an array of up to 100 email objects. Returns { "data": [{ "id": "…" }] }.

Retrieve email

GET/emails/:id

Returns the email and an events array with every state change.

List emails

GET/emails?limit=20&offset=0

Update scheduled email

PATCH/emails/:id
FieldTypeDescription
scheduled_atrequiredstringNew send time.

Cancel email

POST/emails/:id/cancel