Sending email

POST /emails accepts a documented subset of Resend's request. Hedvi answers 200 only after the email, its recipients, its quota reservation and its send job are durably stored.

Use a project key, submit the email and track its ID.
Inspect the recorded result after submitting a message. View full-size diagram
FieldNotes
fromemail@domain or Name <email@domain>. Live keys require a verified domain in the key's project. Display names are limited to 128 UTF-8 bytes; quoted local-parts are unsupported.
to, cc, bccString or array. At most 50 recipients in total. Bcc is never written to headers.
subjectRequired, one line, up to 989 UTF-8 bytes.
html, textAt least one. UTF-8.
reply_toString or array, at most 50 addresses.
headersCustom headers such as List-Unsubscribe. Structural headers (From, To, Content-Type …) and the X-SES-, X-AMZ-, X-Hedvi- and Resent- prefixes are refused.
tagsUp to 10 {name, value} pairs, ASCII letters, digits, _ and -.
attachmentsUp to 10, as base64 content with filename, optional content_type and content_id for inline images. path (remote URL) is not supported. Executable types are refused.

The total of HTML, text and decoded attachments is limited to 10 MB. Unknown fields return 422 instead of being silently ignored.

Recipients and quota

Quota is counted per unique delivery recipient. If the same address appears in several fields it counts once, with priority To → Cc → Bcc. Suppressed addresses are accepted for visibility but neither sent nor charged.