EEmailytDocumentationOpen dashboard →
API reference

Email API

The server-to-server API uses JSON over HTTPS at https://api.emailyt.com. Authenticate every request with a test or live API key.

POST/v1/emails

Send 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

NameRequiredDescription
AuthorizationrequiredBearer ey_test_… or Bearer ey_live_….
Content-Typerequiredapplication/json.
Idempotency-KeyrecommendedA stable unique value for this logical email. Reuse it only with the identical body.

JSON body

FieldTypeDescription
fromstring requiredSender email. Live keys require a verified sender domain.
tostring or string[]Primary recipients. At least one To, Cc, or Bcc recipient is required.
ccstring or string[]Carbon-copy recipients.
bccstring or string[]Blind-carbon-copy recipients.
replyTostringOptional reply-to email address.
subjectstring requiredSingle line, maximum 998 characters.
htmlstringHTML body. Provide html, text, or both.
textstringPlain-text body. Recommended as an accessible fallback.
headersobjectCustom RFC-compatible header names and values. CR/LF characters are rejected.
tagsstring[]Up to 50 values, each using letters, numbers, underscores, or hyphens.
attachmentsobject[]Up to 50 base64 files. Total decoded attachment content cannot exceed 3.5 MB.

Attachment object

FieldTypeDescription
filenamestring requiredSafe filename without line breaks.
contentstring requiredBase64-encoded bytes.
contentTypestringMIME type; defaults to application/octet-stream.
inlinebooleanUse inline content disposition.
contentIdstringContent 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

Recipients100 per fieldTo, Cc, and Bcc count individually against quota.
Request JSON5 MBIncludes body, headers, tags, and base64 expansion.
Attachments50 / 3.5 MBMaximum count and combined decoded size.
Tags50Maximum 256 characters per tag.
Test traffic100 recipients/hourPer account; test traffic does not call SES.