> ## Documentation Index
> Fetch the complete documentation index at: https://docs.condotta.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resend Connector: Send Emails from Workflows

> Send transactional and marketing emails with Resend from any workflow, and manage audience contacts and sending domains in the same place.

The Resend connector lets your workflows send transactional and marketing emails, manage audience contacts, and verify sending domains.

> [!NOTE]
>
> For the full API reference, see the [Resend API documentation](https://resend.com/docs/api-reference).

> [!TIP]
>
> If you just need to send a quick notification email without setting up an external service, use the built-in [Send Email node](https://docs.condotta.ai/workflow-editor/nodes/send-email.md) instead, as it sends from Condotta with no connection required.

> [!NOTE]
>
> This connector requires a **connection** with valid credentials before it can be used in a workflow. See [Managing Connections](https://docs.condotta.ai/platform/connections.md) for setup instructions.

## Connection setup

**1. Get your API key**

Log in to the [Resend dashboard](https://resend.com) and navigate to **API Keys**. Create a new API key or copy an existing one.

**2. Add the connection in Condotta**

Go to **Connections** in Condotta, click **Add Connection**, select **Resend**, and enter:

* **API Key**: Your Resend API key (starts with `re_`)
* **Default From Address** (optional): A default sender address (e.g., `Team <hello@yourdomain.com>`) used when `from` is not specified in the tool parameters

> [!TIP]
>
> Make sure you've verified a sending domain in Resend before sending emails. Emails from unverified domains will fail.

## Tools

### Emails

> [accordion] send-email: Send an email
>
> **from** `string`
>
> Sender address. Falls back to the connection's default from address.
>
> **to** `string | string[]` *required*
>
> Recipient email address(es).
>
> **subject** `string` *required*
>
> Email subject line.
>
> **html** `string`
>
> HTML email body.
>
> **text** `string`
>
> Plain text email body.
>
> **cc** `string | string[]`
>
> CC recipient(s).
>
> **bcc** `string | string[]`
>
> BCC recipient(s).
>
> **reply\_to** `string | string[]`
>
> Reply-to address(es).
>
> **tags** `object[]`
>
> Email tags for tracking. Each tag has a `name` and `value`.
>
> **scheduled\_at** `string`
>
> Schedule send time (ISO 8601).
>
> **attachments** `object[]`
>
> File attachments. Each item is an object with a `filename` and base64-encoded `content`.
>
> In a workflow, map `content` to an upstream output that already produces base64-encoded bytes (e.g. a file downloaded over HTTP/FTP, or a document produced by another step).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "from": "Acme <onboarding@resend.dev>",
>   "to": ["delivered@resend.dev"],
>   "subject": "hello world",
>   "html": "<p>it works!</p>",
>   "reply_to": "onboarding@resend.dev",
>   "attachments": [
>     { "filename": "report.csv", "content": "Y29sMSxjb2wyCg==" }
>   ]
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
> }
> ```

> [accordion] send-batch-emails: Send multiple emails
>
> **emails** `object[]` *required*
>
> Array of email objects with the same fields as `send-email` (including `attachments`).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "emails": [
>     {
>       "from": "Acme <onboarding@resend.dev>",
>       "to": ["foo@gmail.com"],
>       "subject": "hello world",
>       "html": "<h1>it works!</h1>"
>     },
>     {
>       "from": "Acme <onboarding@resend.dev>",
>       "to": ["bar@outlook.com"],
>       "subject": "world hello",
>       "html": "<p>it works!</p>"
>     }
>   ]
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "data": [
>     {
>       "id": "ae2014de-c168-4c61-8267-70d2662a1ce1"
>     },
>     {
>       "id": "faccb7a5-8a28-4e9a-ac64-8da1cc3bc1cb"
>     }
>   ]
> }
> ```

> [accordion] get-email: Get sent email details
>
> **id** `string` *required*
>
> Email ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "email",
>   "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
>   "to": ["delivered@resend.dev"],
>   "from": "Acme <onboarding@resend.dev>",
>   "created_at": "2023-04-03T22:13:42.674981+00:00",
>   "subject": "Hello World",
>   "html": "Congrats on sending your <strong>first email</strong>!",
>   "text": null,
>   "bcc": [],
>   "cc": [],
>   "reply_to": [],
>   "last_event": "delivered",
>   "scheduled_at": null,
>   "tags": [
>     {
>       "name": "category",
>       "value": "confirm_email"
>     }
>   ]
> }
> ```

> [accordion] list-emails: List all sent emails
>
> No parameters required.
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "list",
>   "has_more": false,
>   "data": [
>     {
>       "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
>       "to": ["delivered@resend.dev"],
>       "from": "Acme <onboarding@resend.dev>",
>       "created_at": "2023-04-03T22:13:42.674981+00:00",
>       "subject": "Hello World",
>       "bcc": null,
>       "cc": null,
>       "reply_to": null,
>       "last_event": "delivered",
>       "scheduled_at": null
>     }
>   ]
> }
> ```

### Contacts

> [accordion] create-contact: Add a contact to an audience
>
> **audience\_id** `string` *required*
>
> Audience ID.
>
> **email** `string` *required*
>
> Contact email address.
>
> **first\_name** `string`
>
> First name.
>
> **last\_name** `string`
>
> Last name.
>
> **unsubscribed** `boolean` (default: false)
>
> Whether the contact is unsubscribed.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
>   "email": "steve.wozniak@gmail.com",
>   "first_name": "Steve",
>   "last_name": "Wozniak",
>   "unsubscribed": false
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "contact",
>   "id": "479e3145-dd38-476b-932c-529ceb705947"
> }
> ```

> [accordion] list-contacts: List contacts in an audience
>
> **audience\_id** `string` *required*
>
> Audience ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "list",
>   "has_more": false,
>   "data": [
>     {
>       "id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
>       "email": "steve.wozniak@gmail.com",
>       "first_name": "Steve",
>       "last_name": "Wozniak",
>       "created_at": "2023-10-06T23:47:56.678Z",
>       "unsubscribed": false
>     }
>   ]
> }
> ```

> [accordion] get-contact: Get a contact by ID
>
> **audience\_id** `string` *required*
>
> Audience ID.
>
> **id** `string` *required*
>
> Contact ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
>   "id": "e169aa45-1ecf-4183-9955-b1499d5701d3"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "contact",
>   "id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
>   "email": "steve.wozniak@gmail.com",
>   "first_name": "Steve",
>   "last_name": "Wozniak",
>   "created_at": "2023-10-06T23:47:56.678Z",
>   "unsubscribed": false
> }
> ```

> [accordion] update-contact: Update a contact
>
> **audience\_id** `string` *required*
>
> Audience ID.
>
> **id** `string` *required*
>
> Contact ID.
>
> **first\_name** `string`
>
> New first name.
>
> **last\_name** `string`
>
> New last name.
>
> **unsubscribed** `boolean`
>
> Update subscription status.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
>   "id": "479e3145-dd38-476b-932c-529ceb705947",
>   "unsubscribed": true
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "contact",
>   "id": "479e3145-dd38-476b-932c-529ceb705947"
> }
> ```

> [accordion] delete-contact: Remove a contact
>
> **audience\_id** `string` *required*
>
> Audience ID.
>
> **id** `string` *required*
>
> Contact ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
>   "id": "520784e2-887d-4c25-b53c-4ad46ad38100"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "contact",
>   "contact": "520784e2-887d-4c25-b53c-4ad46ad38100",
>   "deleted": true
> }
> ```

### Domains

> [accordion] list-domains: List configured domains
>
> No parameters required.
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "list",
>   "has_more": false,
>   "data": [
>     {
>       "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
>       "name": "example.com",
>       "status": "not_started",
>       "created_at": "2023-04-26T20:21:26.347412+00:00",
>       "region": "us-east-1"
>     }
>   ]
> }
> ```

> [accordion] get-domain: Get domain details
>
> **id** `string` *required*
>
> Domain ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "id": "d91cd9bd-1176-453e-8fc1-35364d380206"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "domain",
>   "id": "d91cd9bd-1176-453e-8fc1-35364d380206",
>   "name": "example.com",
>   "status": "not_started",
>   "created_at": "2023-04-26T20:21:26.347412+00:00",
>   "region": "us-east-1",
>   "records": [
>     {
>       "record": "SPF",
>       "name": "send",
>       "type": "MX",
>       "ttl": "Auto",
>       "status": "not_started",
>       "value": "feedback-smtp.us-east-1.amazonses.com",
>       "priority": 10
>     },
>     {
>       "record": "SPF",
>       "name": "send",
>       "value": "\"v=spf1 include:amazonses.com ~all\"",
>       "type": "TXT",
>       "ttl": "Auto",
>       "status": "not_started"
>     },
>     {
>       "record": "DKIM",
>       "name": "resend._domainkey",
>       "value": "p=MIGfMA0GCSqGSIb3DQEBAQUAA4...",
>       "type": "TXT",
>       "status": "not_started",
>       "ttl": "Auto"
>     }
>   ]
> }
> ```

> [accordion] verify-domain: Trigger DNS verification
>
> **id** `string` *required*
>
> Domain ID.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "id": "d91cd9bd-1176-453e-8fc1-35364d380206"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "object": "domain",
>   "id": "d91cd9bd-1176-453e-8fc1-35364d380206"
> }
> ```

### Advanced

> [accordion] raw-request: Make an arbitrary HTTP request
>
> Send a request to any Resend API endpoint.
>
> **method** `string` *required*
>
> HTTP method: `GET`, `POST`, `PATCH`, `PUT`, or `DELETE`.
>
> **path** `string` *required*
>
> API path (e.g., `/emails`).
>
> **body** `object`
>
> Request body.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "method": "POST",
>   "path": "/emails",
>   "body": {
>     "from": "Acme <onboarding@resend.dev>",
>     "to": ["delivered@resend.dev"],
>     "subject": "Hello World",
>     "html": "<p>Congrats on sending your first email!</p>"
>   }
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
> }
> ```

> [card] [Try this free for 14 days](https://preview.condotta.ai/signup)
>
> Start a 14-day trial on Band 1. At day 14, choose your band, or stop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.