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

# Resend

> The universal API for sending emails

The universal API for sending emails.

`resend` · **62 tools** · no triggers

## Connect it

```bash
run auth resend
run auth resend --scope team    # shared with the organization
```

Or from the [Integrations page](https://app.boxd.sh/integrations) in the console. See [Connections](/guides/integrations/connections.md) for personal versus shared, and who may remove one.

## Use it

```bash
run resend          # common commands
run resend --all    # every command
```

```ts
import { resend } from "@boxd/run";
```

## Common tools

| Tool | What it does |
| - | - |
| `create-contact-v2` | Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience. |
| `get-contact` | Tool to retrieve a single contact from Resend by ID or email. |
| `list-all-contacts` | Tool to retrieve a list of all contacts from Resend. Use when you need to fetch contacts across all audiences with optional pagination. |
| `send-batch-emails` | Trigger up to 100 batch emails at once. Use when you need to send multiple emails in a single API request. |
| `send-email` | Send an email using Resend. Confirm recipients and content with the user before invoking - sends are irreversible. |

> [accordion] All 62 tools
>
> | Tool | What it does |
> | - | - |
> | `add-contact-to-segment` | Add an existing contact to a segment in Resend. Use when you need to organize contacts into specific segments for targeted communication. |
> | `cancel-email` | Cancel a scheduled email. |
> | `create-api-key` | Create a new API key to authenticate communications with Resend. |
> | `create-audience` | Create a list of contacts. |
> | `create-contact` | Create a contact in Resend. |
> | `create-contact-property` | Tool to create a new contact property in Resend. Use when you need to define custom fields for contacts. |
> | `create-contact-v2` | Tool to create a new contact in Resend. Use when you need to add a contact to Resend without specifying an audience. |
> | `create-domain` | Create a domain through the Resend Email API. The domain is created in a pending/unverified state and cannot be used for sending emails until DNS... |
> | `create-template` | Tool to create a new email template in Resend. Use when you need to define reusable email templates with optional variables. |
> | `create-topic` | Tool to create a new topic to segment your audience. Use when you need to create a topic for organizing contacts by interests or preferences. |
> | `create-webhook` | Tool to create a webhook to receive real-time notifications about email events. |
> | `delete-api-key` | Remove an existing API key from Resend. Use when you need to revoke or delete an API key. |
> | `delete-audience` | Remove an existing audience. |
> | `delete-contact` | Delete a contact in Resend. |
> | `delete-contact-by-id` | Tool to remove an existing contact by its ID. Use when you need to delete a contact directly without specifying an audience. |
> | `delete-contact-property` | Remove an existing contact property from Resend. |
> | `delete-domain` | Delete a domain through the Resend Email API. Deletion is irreversible; ensure no active email traffic or DNS configurations depend on the domain before calling. |
> | `delete-segment` | Remove an existing segment. Use when you need to permanently delete a segment by its ID. |
> | `delete-template` | Remove an existing template. Use this action when you need to delete a template from Resend. |
> | `delete-topic` | Tool to remove an existing topic in Resend. Use when you need to delete a topic. |
> | `delete-webhook` | Remove an existing webhook. Use this to delete a webhook configuration when you no longer need to receive event notifications at that endpoint. |
> | `duplicate-template` | Duplicate an existing template through the Resend Email API. |
> | `get-contact` | Tool to retrieve a single contact from Resend by ID or email. |
> | `get-contact-property` | Tool to retrieve a single contact property from Resend. Use when you need to get details about a specific contact property by its ID. |
> | `get-email-attachment` | Retrieve a single attachment from a sent email. Use when you need to access attachment metadata and download URL. |
> | `get-segment` | Retrieve a single segment by its ID. Use when you need to get detailed information about a specific segment. |
> | `get-template` | Retrieve a single template by ID or alias from Resend. Use when you need to view template details. |
> | `get-topic` | Tool to retrieve a single topic by its ID in Resend. Use when you need to fetch details of a specific topic. |
> | `get-webhook` | Retrieve a single webhook for the authenticated user. Use this to get details about a specific webhook configuration including its endpoint... |
> | `list-all-contacts` | Tool to retrieve a list of all contacts from Resend. Use when you need to fetch contacts across all audiences with optional pagination. |
> | `list-api-keys` | Tool to retrieve a list of API keys for the authenticated user. |
> | `list-audiences` | List all audiences. |
> | `list-broadcasts` | Tool to retrieve a list of broadcasts. Use when you need to fetch all broadcasts or paginate through them. |
> | `list-contact-properties` | Tool to retrieve a list of contact properties from Resend. Use when you need to view available contact property definitions. |
> | `list-contacts` | List contacts in Resend. |
> | `list-contact-segments` | Retrieve a list of segments that a contact is part of. Use when you need to determine which segments a specific contact belongs to. |
> | `list-contact-topics` | Retrieve a list of topic subscriptions for a contact in Resend. |
> | `list-domains` | List all domains. Use the returned domain IDs as inputs for tools like RESEND\_VERIFY\_DOMAIN that require a domain\_id. |
> | `list-email-attachments` | Tool to retrieve a list of attachments from a sent email. Use when you need to get information about files attached to an email sent via Resend. |
> | `list-emails` | Tool to retrieve a list of emails sent by your team. Use when you need to fetch outbound emails from your account. |
> | `list-received-emails` | Tool to retrieve a list of received emails for the authenticated user. |
> | `list-segments` | Tool to retrieve a list of segments from Resend. Use when you need to view all available segments for audience management. |
> | `list-templates` | Tool to retrieve a list of templates from Resend. Use when you need to get all available templates with optional pagination support. |
> | `list-topics` | Tool to retrieve a list of topics for the authenticated user. |
> | `list-webhooks` | Retrieve a list of webhooks for the authenticated user. Use this to view all configured webhooks with their endpoints, event types, and status. |
> | `publish-template` | Publish a template through the Resend Email API. Use when you need to make a template publicly available. |
> | `remove-contact-from-segment` | Remove an existing contact from a segment. Use when you need to disassociate a contact from a specific segment. |
> | `retrieve-audience` | Retrieve a single audience. |
> | `retrieve-contact` | Retrieve a contact in Resend. |
> | `retrieve-domain` | Retrieve a single domain. |
> | `retrieve-email` | Retrieve a single email. |
> | `send-batch-emails` | Trigger up to 100 batch emails at once. Use when you need to send multiple emails in a single API request. |
> | `send-email` | Send an email using Resend. Confirm recipients and content with the user before invoking - sends are irreversible. |
> | `update-broadcast` | Update an existing broadcast in Resend. Use when you need to modify broadcast details like name, subject, content, or recipients. |
> | `update-contact` | Tool to update an existing contact in Resend by ID or email. |
> | `update-contact-property` | Update an existing contact property in Resend. Only the fallback\_value can be updated; the key and type fields cannot be changed after creation. |
> | `update-domain` | Update an existing domain. |
> | `update-email` | Update a scheduled email. |
> | `update-template` | Tool to update an existing email template in Resend. Use when you need to modify template properties such as name, subject, HTML content, or variables. |
> | `update-topic` | Tool to update an existing topic in Resend. Use when you need to modify the name of a topic. |
> | `update-webhook` | Tool to update an existing webhook configuration. Use when you need to modify the endpoint URL, change event subscriptions, or enable/disable a webhook. |
> | `verify-domain` | Verify a domain through the Resend Email API. DNS records must fully propagate before verification succeeds; avoid immediate retries after DNS setup. |

[Open Resend in the console →](https://app.boxd.sh/integrations/detail/resend)
