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

# Resend

> Connect Resend to VexiData to query deliveries, broadcasts, contacts, and domains with your AI assistant — and manage them with approval.

Connect Resend and ask your AI assistant about your email — what was delivered, bounced, opened or clicked, how a broadcast performed, which contacts sit in which segment, and whether your sending domains are verified. Resend connects with an API key instead of OAuth.

## Prerequisites

* A [Resend](https://resend.com) team where you can create API keys — ideally with at least one verified sending domain, which VexiData uses to name the connection
* The **Connect sources** capability in your VexiData organization, to connect the platform — Owners and Admins have it by default

## Connect Resend

**1. Create an API key in Resend**

1. In Resend, open **API Keys**
2. Click **Create API Key**
3. Name it (for example, `VexiData`) and give it **Full access** — a sending-only key cannot read emails, contacts, or domains, so every question would fail
4. Copy the key (it starts with `re_`) — Resend shows it only once

**2. Paste the key into VexiData**

Go to the [**Integrations**](https://vexidata.com/integrations) page in VexiData, click **Connect** on **Resend**, paste the key into **API key**, and click **Connect**. VexiData validates it live against your Resend team and names the connection after one of your sending domains — the first verified one when you have it (for example, `mail.example.com`). A team with no domains yet is named **Resend**.

> [!NOTE]
>
> **Good to know about Resend's API:**
>
> * Requests are plain REST — the AI handles the `limit`/`after`/`before` cursor pagination for you
> * Resend allows **10 requests per second per team**, shared by every key you have — if the AI reports a rate limit, give it a moment before asking again
> * Resend keeps the **current status** of each sent email (`delivered`, `bounced`, `opened`…) but no event timeline; broadcast outcomes are available per recipient
> * A team without a verified domain can only send to its own address from `onboarding@resend.dev`

## Managing the connection

To connect more Resend teams, click **Add account** on the Resend card on the [**Integrations**](https://vexidata.com/integrations) page and paste that team's key — each team keeps its own key.

The connection with the **Primary** badge is the primary, which tools use when a request doesn't name one. To change it, open another connection and click **Make primary** in its **Connection** card.

To rotate a key, create a new one in Resend and connect the same team again with the new key — VexiData recognizes the team by its verified domains (or by the **Resend** name while it has none) and updates the existing connection in place. To rename a connection, use the **Label** field in its **Settings** card. To remove a team, open its connection and click **Disconnect** in its **Connection** card.

## What the AI can do

| Tool | What it does | Access |
| - | - | - |
| `resend_read` | Reads sent emails and their delivery status, domains, contacts and their topic subscriptions, segments, topics, broadcasts (with recipients and clicked links), templates, and webhooks. | Read |
| `resend_write` | Creates and updates contacts, segments, topics and a contact's topic subscriptions, templates, webhooks, and broadcast drafts; verifies domains; reschedules or cancels scheduled emails. | Write |
| `resend_send` | Sends email — one message, a batch of up to 100, or a broadcast — only after confirming the sender, every recipient, and the content with you. | Destructive |
| `resend_delete` | Permanently deletes a resource (a contact, segment, topic, template, webhook, domain, or draft broadcast), only on your explicit, item-by-item approval. | Destructive |

Reads are available to anyone with access to the connection. Write, send, and delete tools need **Write** access on the connection (by default, Owners and Admins). Sending is irreversible, so the AI is instructed to show you exactly what will go out and to send only on your explicit go-ahead; when you want a delay, it schedules the email instead, because a scheduled email can still be cancelled. API keys are never created or deleted through VexiData. Try asking: *"Which emails bounced in the last 7 days, and from which domain?"*

## Troubleshooting

> [accordion] Requests fail with an authorization error
>
> The key was revoked, copied incompletely, or created with **Sending access** only — Resend reports a sending-only key on reads as "restricted" and an unknown key as "API key is invalid". Create a new key with **Full access** under **API Keys**, then connect Resend again in VexiData with the new key.

> [accordion] The connection is named Resend instead of my domain
>
> Your team had no domain when you connected. Add and verify one in Resend (**Domains** → add the DNS records → **Verify**), then either rename the connection in its **Settings** card or disconnect it and connect again, which names the new connection after the domain.

> [accordion] A send fails because the domain is not verified
>
> The `from` address must use a domain that is verified in the connected Resend team. Ask the AI to list your domains and their status, pick a verified sender, or verify the domain first. Until a domain is verified, Resend only delivers to your own address from `onboarding@resend.dev`.

> [accordion] Questions hit a rate limit
>
> Resend allows 10 requests per second per team across all your keys, including the ones your application uses. The AI is instructed to wait the period Resend asks for; asking for a narrower range (one domain, one week, one broadcast) keeps calls small.


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