Raw markdown

API · Emails

POST /v1/emails

Also available as POST /emails.

Body

FieldRequiredNotes
fromyesVerified domain or test sender
toyesstring or array
subjectyes*unless template_id
html / textyes*at least one, unless template
cc, bcc, reply_tonostring or array
headers, tags, attachmentsnoResend-shaped
scheduled_atnoISO-8601

Example

curl -X POST https://api.envimaily.com/v1/emails \
  -H "Authorization: Bearer em_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"onboarding@envimaily.com","to":["a@b.com"],"subject":"Hi","html":"<p>x</p>"}'

GET /v1/emails/:id

Returns the send record.

POST /v1/emails/:id/cancel

Cancels a scheduled send when supported.

POST /v1/emails/batch

Up to 100 messages per batch: { "emails": [ … ] }.