POST
/v1/emailsSend an email
Validates and durably archives a message before queueing it for asynchronous delivery. With a test key, the same path is exercised but SES is never called.
Headers
| Name | Required | Description |
|---|---|---|
| Authorization | required | Bearer ey_test_… or Bearer ey_live_…. |
| Content-Type | required | application/json. |
| Idempotency-Key | recommended | A stable unique value for this logical email. Reuse it only with the identical body. |
JSON body
| Field | Type | Description |
|---|---|---|
| from | string required | Sender email. Live keys require a verified sender domain. |
| to | string or string[] | Primary recipients. At least one To, Cc, or Bcc recipient is required. |
| cc | string or string[] | Carbon-copy recipients. |
| bcc | string or string[] | Blind-carbon-copy recipients. |
| replyTo | string | Optional reply-to email address. |
| subject | string required | Single line, maximum 998 characters. |
| html | string | HTML body. Provide html, text, or both. |
| text | string | Plain-text body. Recommended as an accessible fallback. |
| headers | object | Custom RFC-compatible header names and values. CR/LF characters are rejected. |
| tags | string[] | Up to 50 values, each using letters, numbers, underscores, or hyphens. |
| attachments | object[] | Up to 50 base64 files. Total decoded attachment content cannot exceed 3.5 MB. |
Attachment object
| Field | Type | Description |
|---|---|---|
| filename | string required | Safe filename without line breaks. |
| content | string required | Base64-encoded bytes. |
| contentType | string | MIME type; defaults to application/octet-stream. |
| inline | boolean | Use inline content disposition. |
| contentId | string | Content ID used by inline HTML references. |
Response
HTTP/1.1 202 Accepted
Location: /v1/messages/em_7d6c...
{
"id": "em_7d6c9f2d15f04cbea97b8bb845e4e081",
"status": "queued",
"acceptedAt": "2026-11-22T16:42:18.210Z"
}A successful response means the request was validated and stored, not that the recipient accepted the email. Follow message status or consume webhook events for the final outcome.
Request size: the complete JSON request is limited to 5 MB. Large files should be delivered through your own object-storage links.
GET
/v1/messages/{id}Retrieve a message
Returns tenant-scoped message metadata for the API key making the request. Stored bodies and attachment content are never returned.
curl https://api.emailyt.com/v1/messages/em_7d6c9f2d15f04cbea97b8bb845e4e081 \ --header "Authorization: Bearer $EMAILYT_API_KEY"
Message statuses
queued
Accepted and waiting for a worker.
sending
Claimed by the delivery worker.
sent
Accepted by SES; mailbox-provider outcome is pending.
deferred
Delivery was delayed and may still complete.
delivered
The receiving system reported delivery.
bounced
Delivery failed with a bounce.
complained
The recipient reported the message as spam.
rejected
The provider permanently rejected the request.
Limits
| Recipients | 100 per field | To, Cc, and Bcc count individually against quota. |
| Request JSON | 5 MB | Includes body, headers, tags, and base64 expansion. |
| Attachments | 50 / 3.5 MB | Maximum count and combined decoded size. |
| Tags | 50 | Maximum 256 characters per tag. |
| Test traffic | 100 recipients/hour | Per account; test traffic does not call SES. |