> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/communication/resend.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Resend

Resend is an email platform for developers. Send and cancel emails, and manage domains, audiences, contacts, broadcasts and automations.

![Resend logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-89d37504bdfbfb0bad0d217c6b06fb2e304e965e%2Fresend.png?alt=media)

|                    |                                                                            |
| ------------------ | -------------------------------------------------------------------------- |
| **Category**       | [Communication](https://docs.fastn.ai/connectors/catalog/communication.md) |
| **Website**        | [resend.com](https://resend.com)                                           |
| **Authentication** | Access token                                                               |
| **Slug**           | `resend`                                                                   |
| **On fastn.ai**    | [Embed Resend in your product](https://fastn.ai/integrations/resend)       |

## Setup

Your customers enter their access token for Resend when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Resend from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Resend**.
2. Select **Connect** on the Resend card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Resend's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Contact To Segment</td><td><code>addContactToSegment</code></td><td>Add a contact to a segment.</td></tr><tr><td>Cancel Email</td><td><code>cancelEmail</code></td><td>Cancel the scheduled send of an email.</td></tr><tr><td>Create API Key</td><td><code>createApiKey</code></td><td>Create a new Resend API key.</td></tr><tr><td>Create Audience</td><td><code>createAudience</code></td><td>Create a new audience (a list of contacts).</td></tr><tr><td>Create Automation</td><td><code>createAutomation</code></td><td>Create an automation workflow. Provide steps and connections as JSON arrays.</td></tr><tr><td>Create Broadcast</td><td><code>createBroadcast</code></td><td>Create a broadcast (an email sent to a segment).</td></tr><tr><td>Create Contact</td><td><code>createContact</code></td><td>Create a new contact.</td></tr><tr><td>Create Contact Property</td><td><code>createContactProperty</code></td><td>Create a new custom contact property.</td></tr><tr><td>Create Domain</td><td><code>createDomain</code></td><td>Create (register) a new sending domain.</td></tr><tr><td>Create Event</td><td><code>createEvent</code></td><td>Create a custom event definition.</td></tr></tbody></table>

<details>

<summary>View 73 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Segment</td><td><code>createSegment</code></td><td>Create a new segment.</td></tr><tr><td>Create Template</td><td><code>createTemplate</code></td><td>Create a new email template.</td></tr><tr><td>Create Topic</td><td><code>createTopic</code></td><td>Create a new topic for managing contact subscriptions.</td></tr><tr><td>Create Webhook</td><td><code>createWebhook</code></td><td>Register a new webhook endpoint subscribed to a set of event types.</td></tr><tr><td>Delete API Key</td><td><code>deleteApiKey</code></td><td>Remove an existing API key.</td></tr><tr><td>Delete Audience</td><td><code>deleteAudience</code></td><td>Remove an existing audience.</td></tr><tr><td>Delete Automation</td><td><code>deleteAutomation</code></td><td>Delete an automation.</td></tr><tr><td>Delete Broadcast</td><td><code>deleteBroadcast</code></td><td>Remove a broadcast that is in draft status.</td></tr><tr><td>Delete Contact</td><td><code>deleteContact</code></td><td>Remove an existing contact by ID or email.</td></tr><tr><td>Delete Contact Property</td><td><code>deleteContactProperty</code></td><td>Remove an existing contact property.</td></tr><tr><td>Delete Domain</td><td><code>deleteDomain</code></td><td>Remove an existing domain.</td></tr><tr><td>Delete Event</td><td><code>deleteEvent</code></td><td>Delete a custom event definition.</td></tr><tr><td>Delete Segment</td><td><code>deleteSegment</code></td><td>Remove an existing segment.</td></tr><tr><td>Delete Template</td><td><code>deleteTemplate</code></td><td>Remove an existing template.</td></tr><tr><td>Delete Topic</td><td><code>deleteTopic</code></td><td>Remove an existing topic.</td></tr><tr><td>Delete Webhook</td><td><code>deleteWebhook</code></td><td>Remove an existing webhook.</td></tr><tr><td>Duplicate Template</td><td><code>duplicateTemplate</code></td><td>Duplicate an existing template.</td></tr><tr><td>Get Contact Topics</td><td><code>getContactTopics</code></td><td>Retrieve the topic subscriptions for a contact.</td></tr><tr><td>Get Email Attachment</td><td><code>getEmailAttachment</code></td><td>Retrieve a single attachment for a sent email.</td></tr><tr><td>Get Received Email</td><td><code>getReceivedEmail</code></td><td>Retrieve a single received (inbound) email by ID.</td></tr><tr><td>Get Received Email Attachment</td><td><code>getReceivedEmailAttachment</code></td><td>Retrieve a single attachment for a received email.</td></tr><tr><td>List API Keys</td><td><code>listApiKeys</code></td><td>Retrieve a list of all API keys.</td></tr><tr><td>List Audiences</td><td><code>listAudiences</code></td><td>Retrieve a list of all audiences.</td></tr><tr><td>List Automation Runs</td><td><code>listAutomationRuns</code></td><td>Retrieve a list of runs for an automation.</td></tr><tr><td>List Automations</td><td><code>listAutomations</code></td><td>Retrieve a list of automations.</td></tr><tr><td>List Broadcasts</td><td><code>listBroadcasts</code></td><td>Retrieve a list of broadcasts.</td></tr><tr><td>List Contact Properties</td><td><code>listContactProperties</code></td><td>Retrieve a list of contact properties.</td></tr><tr><td>List Contact Segments</td><td><code>listContactSegments</code></td><td>Retrieve the list of segments a contact belongs to.</td></tr><tr><td>List Contacts</td><td><code>listContacts</code></td><td>Retrieve a paginated list of contacts, optionally filtered by segment.</td></tr><tr><td>List Domains</td><td><code>listDomains</code></td><td>Retrieve a list of all domains in the account.</td></tr><tr><td>List Email Attachments</td><td><code>listEmailAttachments</code></td><td>Retrieve the list of attachments for a sent email.</td></tr><tr><td>List Emails</td><td><code>listEmails</code></td><td>Retrieve a paginated list of sent emails.</td></tr><tr><td>List Events</td><td><code>listEvents</code></td><td>Retrieve a list of custom event definitions.</td></tr><tr><td>List Logs</td><td><code>listLogs</code></td><td>Retrieve a list of API request logs.</td></tr><tr><td>List Received Email Attachments</td><td><code>listReceivedEmailAttachments</code></td><td>Retrieve the list of attachments for a received email.</td></tr><tr><td>List Received Emails</td><td><code>listReceivedEmails</code></td><td>Retrieve a paginated list of received (inbound) emails.</td></tr><tr><td>List Segments</td><td><code>listSegments</code></td><td>Retrieve a list of segments.</td></tr><tr><td>List Templates</td><td><code>listTemplates</code></td><td>Retrieve a list of templates.</td></tr><tr><td>List Topics</td><td><code>listTopics</code></td><td>Retrieve a list of topics.</td></tr><tr><td>List Webhooks</td><td><code>listWebhooks</code></td><td>Retrieve a list of registered webhooks.</td></tr><tr><td>Publish Template</td><td><code>publishTemplate</code></td><td>Publish a template so it can be used to send emails.</td></tr><tr><td>Remove Contact From Segment</td><td><code>removeContactFromSegment</code></td><td>Remove a contact from a segment.</td></tr><tr><td>Retrieve Audience</td><td><code>getAudience</code></td><td>Retrieve a single audience by its ID.</td></tr><tr><td>Retrieve Automation</td><td><code>getAutomation</code></td><td>Retrieve a single automation by its ID.</td></tr><tr><td>Retrieve Automation Run</td><td><code>getAutomationRun</code></td><td>Retrieve a single automation run by its ID.</td></tr><tr><td>Retrieve Broadcast</td><td><code>getBroadcast</code></td><td>Retrieve a single broadcast by its ID.</td></tr><tr><td>Retrieve Contact</td><td><code>getContact</code></td><td>Retrieve a single contact by its ID or email address.</td></tr><tr><td>Retrieve Contact Property</td><td><code>getContactProperty</code></td><td>Retrieve a single contact property by its ID.</td></tr><tr><td>Retrieve Domain</td><td><code>getDomain</code></td><td>Retrieve a single domain by its ID.</td></tr><tr><td>Retrieve Email</td><td><code>getEmail</code></td><td>Retrieve a single sent email by its ID.</td></tr><tr><td>Retrieve Event</td><td><code>getEvent</code></td><td>Retrieve a single custom event by its identifier.</td></tr><tr><td>Retrieve Log</td><td><code>getLog</code></td><td>Retrieve a single API request log by its ID.</td></tr><tr><td>Retrieve Segment</td><td><code>getSegment</code></td><td>Retrieve a single segment by its ID.</td></tr><tr><td>Retrieve Template</td><td><code>getTemplate</code></td><td>Retrieve a single template by its ID.</td></tr><tr><td>Retrieve Topic</td><td><code>getTopic</code></td><td>Retrieve a single topic by its ID.</td></tr><tr><td>Retrieve Webhook</td><td><code>getWebhook</code></td><td>Retrieve a single webhook by its ID.</td></tr><tr><td>Send Batch Emails</td><td><code>sendBatchEmails</code></td><td>Send up to 100 emails in a single request. Pass a JSON-encoded array of email objects as the emails input.</td></tr><tr><td>Send Broadcast</td><td><code>sendBroadcast</code></td><td>Send or schedule a broadcast.</td></tr><tr><td>Send Email</td><td><code>sendEmail</code></td><td>Send a transactional email through Resend. Requires from, to and subject; provide html or text (or a published template).</td></tr><tr><td>Send Event</td><td><code>sendEvent</code></td><td>Send (emit) a custom event for a contact or email address.</td></tr><tr><td>Stop Automation</td><td><code>stopAutomation</code></td><td>Stop a running automation, setting its status to disabled.</td></tr><tr><td>Update Automation</td><td><code>updateAutomation</code></td><td>Update an automation. At least one of name, status, or steps+connections must be provided.</td></tr><tr><td>Update Broadcast</td><td><code>updateBroadcast</code></td><td>Update an existing broadcast (draft).</td></tr><tr><td>Update Contact</td><td><code>updateContact</code></td><td>Update a single contact by ID or email. Provide the fields you wish to change.</td></tr><tr><td>Update Contact Property</td><td><code>updateContactProperty</code></td><td>Update an existing contact property's fallback value.</td></tr><tr><td>Update Contact Topics</td><td><code>updateContactTopics</code></td><td>Update the topic subscriptions for a contact. Pass topics as a JSON array of {id, subscription} objects.</td></tr><tr><td>Update Domain</td><td><code>updateDomain</code></td><td>Update settings of an existing domain such as tracking and TLS.</td></tr><tr><td>Update Email</td><td><code>updateEmail</code></td><td>Update a scheduled email, e.g. reschedule its send time.</td></tr><tr><td>Update Event</td><td><code>updateEvent</code></td><td>Update a custom event's payload schema.</td></tr><tr><td>Update Template</td><td><code>updateTemplate</code></td><td>Update an existing template.</td></tr><tr><td>Update Topic</td><td><code>updateTopic</code></td><td>Update an existing topic.</td></tr><tr><td>Update Webhook</td><td><code>updateWebhook</code></td><td>Update an existing webhook's endpoint, events or status.</td></tr><tr><td>Verify Domain</td><td><code>verifyDomain</code></td><td>Trigger verification of an existing domain's DNS records.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Contact Created</td><td><code>contact.created</code></td><td>A new contact was created.</td></tr><tr><td>Contact Deleted</td><td><code>contact.deleted</code></td><td>A contact was deleted.</td></tr><tr><td>Contact Updated</td><td><code>contact.updated</code></td><td>A contact was updated.</td></tr><tr><td>Domain Created</td><td><code>domain.created</code></td><td>A new domain was created.</td></tr><tr><td>Domain Deleted</td><td><code>domain.deleted</code></td><td>A domain was deleted.</td></tr><tr><td>Domain Updated</td><td><code>domain.updated</code></td><td>A domain was updated.</td></tr><tr><td>Email Bounced</td><td><code>email.bounced</code></td><td>The recipient's mail server permanently rejected the email.</td></tr><tr><td>Email Clicked</td><td><code>email.clicked</code></td><td>The recipient clicked a link in the email (requires click tracking enabled).</td></tr><tr><td>Email Complained</td><td><code>email.complained</code></td><td>The recipient marked the email as spam.</td></tr><tr><td>Email Delivered</td><td><code>email.delivered</code></td><td>Resend successfully delivered the email to the recipient's mail server.</td></tr></tbody></table>

<details>

<summary>View 7 more events</summary>

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Email Delivery Delayed</td><td><code>email.delivery_delayed</code></td><td>The email couldn't be delivered to the recipient's mail server because of a temporary issue.</td></tr><tr><td>Email Failed</td><td><code>email.failed</code></td><td>The email could not be sent due to a failure.</td></tr><tr><td>Email Opened</td><td><code>email.opened</code></td><td>The recipient opened the email (requires open tracking enabled).</td></tr><tr><td>Email Received</td><td><code>email.received</code></td><td>An inbound email was received for a configured receiving domain.</td></tr><tr><td>Email Scheduled</td><td><code>email.scheduled</code></td><td>The email has been scheduled to be sent at a later time.</td></tr><tr><td>Email Sent</td><td><code>email.sent</code></td><td>The API request was successful and Resend will attempt to deliver the message to the recipient's mail server.</td></tr><tr><td>Email Suppressed</td><td><code>email.suppressed</code></td><td>The email was suppressed because the recipient is on the suppression list.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/communication/resend.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
