Resend

App · Email · 5 actions

Send and manage transactional emails with Resend, the email API for developers.

Actions

ActionWhat it does
Cancel scheduled emailCancel a scheduled email that has not been sent yet.
Reschedule emailUpdate a scheduled email's send time.
Retrieve emailRetrieve a single email's details and delivery status by ID.
Send batch emailsSend up to 100 transactional emails in a single Resend request.
Send emailSend a transactional email through Resend.

Cancel scheduled email

Cancel a scheduled email that has not been sent yet.

Inputs

Email IDemail_idtextRequired
The ID of the scheduled email to cancel.

Outputs

resultobject
Example output
{
  "result": {
    "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794",
    "object": "email"
  }
}

Reschedule email

Update a scheduled email's send time.

Inputs

Email IDemail_idtextRequired
The ID of the scheduled email to reschedule.
New schedule timescheduled_atdate and timeRequired
New ISO 8601 send time (e.g. 2024-08-05T11:52:01.858Z).

Outputs

resultobject
Example output
{
  "result": {
    "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794",
    "object": "email"
  }
}

Retrieve email

Retrieve a single email's details and delivery status by ID.

Inputs

Email IDemail_idtextRequired
The ID of the email to retrieve (returned when it was sent).

Outputs

resultobject
Example output
{
  "result": {
    "bcc": null,
    "cc": null,
    "created_at": "2024-01-01T00:00:00.000Z",
    "from": "onboarding@resend.dev",
    "html": "<p>Hello World</p>",
    "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
    "last_event": "delivered",
    "object": "email",
    "reply_to": null,
    "subject": "Hello World",
    "text": null,
    "to": [
      "delivered@resend.dev"
    ]
  }
}

Send batch emails

Send up to 100 transactional emails in a single Resend request.

Inputs

EmailsemailslistRequired
A list of email objects to send. Each needs 'from', 'to', 'subject', and 'html' or 'text'.

Outputs

resultobject
Example output
{
  "result": {
    "data": [
      {
        "id": "ae2014de-c168-4c61-8267-70d2662a1ce1"
      },
      {
        "id": "faccb7a5-8a28-4e9a-ac64-8da1cc3bc1cb"
      }
    ]
  }
}

Send email

Send a transactional email through Resend.

Inputs

Fromfrom_emailtextRequired
Sender email address. Must use a verified domain, or 'onboarding@resend.dev' for testing to your own account address.
TotolistRequired
One or more recipient email addresses.
SubjectsubjecttextRequired
Email subject line.
HTML contenthtmltext
HTML email body. Provide HTML or plain text (or both).
Plain text contenttexttext
Plain-text email body. Provide HTML or plain text (or both).
CCcclist
Optional Cc email addresses.
BCCbcclist
Optional Bcc email addresses.
Reply-toreply_tolist
Optional Reply-To email addresses.
Schedule forscheduled_atdate and time
Optional ISO 8601 time to schedule the email (e.g. 2024-08-05T11:52:01.858Z). Sends immediately if omitted.

Outputs

resultobject
Example output
{
  "result": {
    "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
  }
}

On this page