Send Email

Start sending emails through the Resent Email API.

Authentication

AuthorizationBearer

Your Resent API key (re_xxxxxxxxx)

Headers

Idempotency-KeystringOptional<=256 characters
Unique key to prevent duplicated emails. Expires after 24 hours.

Request

This endpoint expects an object.
fromstringRequired

Sender email address. Use Name <email@example.com> for a friendly name.

tostring or list of stringsRequired

Recipient email address(es). Max 50.

subjectstringRequired
bccstring or list of stringsOptional
ccstring or list of stringsOptional
reply_tostring or list of stringsOptional
htmlstringOptional
HTML version of the message.
textstringOptional
Plain text version of the message.
headersmap from strings to stringsOptional
scheduled_atstringOptional

Natural language (e.g. in 1 min) or ISO 8601 datetime.

tagslist of objectsOptional
attachmentslist of objectsOptional
templateobjectOptional

Response

Email accepted
idstringformat: "uuid"

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error