rembrembdocs

Documentation Index

Fetch the complete documentation index at: https://resend.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Body Parameters

Sender email address.To include a friendly name, use the format "Your Name <sender@domain.com>".

to

string | string[]

required

Recipient email address. For multiple addresses, send as an array of strings. Max 50.

Bcc recipient email address. For multiple addresses, send as an array of strings.

Cc recipient email address. For multiple addresses, send as an array of strings.

Schedule email to be sent later. The date should be in natural language (e.g.: in 1 min) or ISO 8601 format (e.g: 2026-08-05T11:52:01.858Z).See examples

Reply-to email address. For multiple addresses, send as an array of strings.

The HTML version of the message.

The plain text version of the message.

The React component used to write the message. Only available in the Node.js SDK.

Custom headers to add to the email.

The topic ID to receive the email.

Filename and content of attachments (max 40MB per email, after Base64 encoding of the attachments).See examples

Hide properties

Content of an attached file, passed as a buffer or Base64 string.

Path where the attachment file is hosted

Content type for the attachment, if not set will be derived from the filename property

You can embed images using the content id parameter for the attachment. To show the image, you need to include the ID in the src attribute of the img tag (e.g., <img src="cid:...">) of your HTML. Learn about inline images.

Custom data passed in key/value pairs.See examples.

Hide properties

The name of the email tag.It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).It can contain no more than 256 characters.

The value of the email tag.It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).It can contain no more than 256 characters.

To send using a template, provide a template object with:

The id of the published email template. Required if template is provided. Only published templates can be used when sending emails.

Template variables object with key/value pairs.

variables: {
	CTA: 'Sign up now',
	CTA_LINK: 'https://example.com/signup'
}

When sending the template, the HTML will be parsed. If all the variables used in the template were provided, the email will be sent. If not, the call will throw a validation error.See the errors reference for more details or learn more about templates.

Hide properties

The key of the variable.May only contain ASCII letters (a–z, A–Z), numbers (0–9), and underscores (_). The following variable names are reserved and cannot be used: FIRST_NAME, LAST_NAME, EMAIL, UNSUBSCRIBE_URL.It can contain no more than 50 characters.

The value of the variable.Observe these technical limitations:

Add an idempotency key to prevent duplicated emails.

Learn more