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.
| Field | Notes |
|---|---|
from | email@domain or Name <email@domain>. Live keys require a verified domain in the key's project. |
to, cc, bcc | String or array. At most 50 recipients in total. Bcc is never written to headers. |
subject | Required, one line, up to 998 characters. |
html, text | At least one. UTF-8. |
reply_to | String or array. |
headers | Custom headers such as List-Unsubscribe. Structural headers (From, To, Content-Type …) are refused. |
tags | Up to 10 {name, value} pairs, ASCII letters, digits, _ and -. |
attachments | Up 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.