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

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Send emails and manage contacts with Resend agents

> Connect Guild agents to Resend to send transactional and batch emails, manage contacts, domains, automations, broadcasts, and inboxes via the Resend API.

Integrations · Resend

A Guild agent can send transactional emails, run broadcast campaigns, and manage your Resend contacts and inboxes without human intervention. Guild stores your Resend API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you write ALLOW and DENY rules that Guild's proxy enforces before any request reaches Resend.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Resend.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Resend to your first agent.

## What the Resend integration exposes

The integration package `guildai~resend` gives agents tools that call Resend's REST API at api.resend.com. Tools cover sending and scheduling individual and batch emails, retrieving delivery metrics, creating and running automations, sending and cancelling broadcasts, managing contacts and segments, configuring and verifying sending domains, and working with inboxes including drafts, threads, and labels. Tools are named with the `resend_` prefix and can be narrowed with [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools).

## How it works

**1. Connect your Resend credential**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **resend**, and paste your key into **API Key**. See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped options.

**2. Import and wire the tools**

Add `guildai~resend` to your agent's dependencies, then import `ResendTools` and spread it into your agent's `tools` object. Use `pick()` to include only the tools your agent needs.

**3. Set credential policies**

Open the credential in **Access & setup > Credentials** and add ALLOW or DENY rules. Guild's proxy enforces rules by operation, agent, and workspace before any request reaches Resend.

## Why Resend access needs governing

Resend tools can send emails to contacts, cancel broadcasts, delete domains, rotate webhook signing secrets, and revoke OAuth grants. An agent acting on a broad credential could affect live sending infrastructure or contact data. [Credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules that Guild's proxy enforces before any request leaves Guild, scoped to specific operations, agents, or workspaces. A DENY rule always overrides an ALLOW rule, so you can permit broad read access while blocking destructive operations such as `resend_domains_remove` or `resend_suppressions_batch_remove`.

Guild stores the API key server-side and injects it as a bearer token; agent code never receives the secret. You can scope a credential to one workspace, one member, or one agent using [dedicated or granted credentials](https://docs.guild.ai/platform/credentials.md), so a campaign agent and an inbox-triage agent never share the same key. Without any scoped rules the credential starts with an allow-all policy; delete that default once your rules cover everything agents should reach.

## About the Resend integration

Agents can send transactional and batch emails, manage contacts and segments, and configure sending domains. They can also create and run email automations and broadcasts, track delivery metrics, and manage inboxes with drafts and labels. The integration is `guildai~resend`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Resend**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **resend**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { ResendTools } from "@guildai-services/guildai~resend"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Resend.",
  tools: { ...ResendTools },
})
```

### Selecting specific tools

Tools are named with the `resend_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~resend`:

> [accordion] All 144 tools
>
> | Tool | What it does |
> | - | - |
> | `resend_api_keys_create` | Create a new API key |
> | `resend_api_keys_list` | Retrieve a list of API keys |
> | `resend_api_keys_remove` | Remove an existing API key |
> | `resend_api_keys_update` | Update an existing API key |
> | `resend_audiences_create` | Deprecated: Use Segments instead. |
> | `resend_audiences_get` | Deprecated: Use Segments instead. |
> | `resend_audiences_list` | Deprecated: Use Segments instead. |
> | `resend_audiences_remove` | Deprecated: Use Segments instead. |
> | `resend_automations_cancel_run` | Stops a running automation run. |
> | `resend_automations_create` | Create an automation |
> | `resend_automations_duplicate` | Duplicate an automation |
> | `resend_automations_get` | Retrieve a single automation |
> | `resend_automations_get_run` | Retrieve a single automation run |
> | `resend_automations_list` | Retrieve a list of automations |
> | `resend_automations_list_runs` | Retrieve a list of automation runs |
> | `resend_automations_remove` | Delete an automation |
> | `resend_automations_stop` | Stop an automation |
> | `resend_automations_update` | Update an automation |
> | `resend_broadcasts_cancel` | Cancels a broadcast that is queued or scheduled. |
> | `resend_broadcasts_create` | Create a broadcast |
> | `resend_broadcasts_duplicate` | Creates a new draft broadcast with the same segment, topic, sender, subject, reply-to, preview text, and content as the source. |
> | `resend_broadcasts_get` | Retrieve a single broadcast |
> | `resend_broadcasts_list` | Retrieve a list of broadcasts |
> | `resend_broadcasts_list_clicked_links` | Retrieve a broadcast's clicked links |
> | `resend_broadcasts_recipients` | Retrieve the recipients of a broadcast for a given event type, such as who opened, clicked, or bounced. |
> | `resend_broadcasts_remove` | Remove an existing broadcast that is in the draft status |
> | `resend_broadcasts_send` | Send or schedule a broadcast |
> | `resend_broadcasts_update` | Update an existing broadcast |
> | `resend_contact_properties_create` | Create a new contact property |
> | `resend_contact_properties_get` | Retrieve a single contact property |
> | `resend_contact_properties_list` | Retrieve a list of contact properties |
> | `resend_contact_properties_remove` | Remove an existing contact property |
> | `resend_contact_properties_update` | Update an existing contact property |
> | `resend_contacts_add_segment` | Add a contact to a segment |
> | `resend_contacts_create` | Create a new contact |
> | `resend_contacts_create_import` | Create a contact import |
> | `resend_contacts_get` | Retrieve a single contact by ID or email |
> | `resend_contacts_get_import` | Retrieve a single contact import |
> | `resend_contacts_list` | Retrieve a list of contacts |
> | `resend_contacts_list_imports` | Retrieve a list of contact imports |
> | `resend_contacts_list_segments` | Retrieve a list of segments for a contact |
> | `resend_contacts_list_topics` | Retrieve topics for a contact |
> | `resend_contacts_remove` | Remove an existing contact by ID or email |
> | `resend_contacts_remove_segment` | Remove a contact from a segment |
> | `resend_contacts_update` | Update a single contact by ID or email |
> | `resend_contacts_update_topics` | Update topics for a contact |
> | `resend_domains_create` | Create a new domain |
> | `resend_domains_create_claim` | Start a claim for a domain that another Resend account has already verified. |
> | `resend_domains_enable_forge` | Put a domain's sending on Resend Forge. |
> | `resend_domains_get` | Retrieve a single domain |
> | `resend_domains_get_claim` | Retrieve the latest claim for the placeholder domain created by the claim. |
> | `resend_domains_list` | Retrieve a list of domains |
> | `resend_domains_remove` | Remove an existing domain |
> | `resend_domains_update` | Update an existing domain |
> | `resend_domains_verify` | Triggers verification of the domain's DNS records including DKIM, SPF, and the tracking CNAME (if a tracking subdomain is configured). |
> | `resend_domains_verify_claim` | Trigger asynchronous DNS verification and ownership transfer for a domain claim. |
> | `resend_emails_cancel` | Cancel the schedule of the e-mail. |
> | `resend_emails_get` | Retrieve a single email |
> | `resend_emails_get_attachment` | Retrieve a single attachment for a sent email |
> | `resend_emails_get_receiving` | Retrieve a single received email |
> | `resend_emails_get_receiving_attachment` | Retrieve a single attachment for a received email |
> | `resend_emails_list` | Retrieve a list of emails |
> | `resend_emails_list_attachments` | Retrieve a list of attachments for a sent email |
> | `resend_emails_list_receiving` | Retrieve a list of received emails |
> | `resend_emails_list_receiving_attachments` | Retrieve a list of attachments for a received email |
> | `resend_emails_metrics` | Retrieve account-level email metrics |
> | `resend_emails_send` | Send an email |
> | `resend_emails_send_batch` | Trigger up to 100 batch emails at once. |
> | `resend_emails_share` | Create a shareable link for a sent or received email. |
> | `resend_emails_update` | Update a single email |
> | `resend_events_create` | Create an event |
> | `resend_events_get` | Retrieve a single event |
> | `resend_events_list` | Retrieve a list of events |
> | `resend_events_remove` | Delete an event |
> | `resend_events_send` | Send an event |
> | `resend_events_update` | Update an event |
> | `resend_inboxes_add_thread_labels` | Applies one or more labels to the thread. |
> | `resend_inboxes_create` | Creates an inbox that sends and receives email at an address on one of your domains. |
> | `resend_inboxes_create_draft` | Creates an unsent draft on the inbox. |
> | `resend_inboxes_create_label` | A label is a named, colored tag that belongs to one inbox. |
> | `resend_inboxes_forward_thread_email` | Forwards a message from the inbox address right away, with no stored draft. |
> | `resend_inboxes_get` | Retrieve a single inbox by ID or email address |
> | `resend_inboxes_get_agent` | Returns the agent settings of the inbox. |
> | `resend_inboxes_get_draft` | Retrieve a single draft |
> | `resend_inboxes_get_thread` | Returns the thread summary. |
> | `resend_inboxes_get_thread_email` | Retrieve a single thread email |
> | `resend_inboxes_list` | Returns the inboxes of the team, newest first. |
> | `resend_inboxes_list_drafts` | Returns the unsent drafts on the inbox, most recently updated first. |
> | `resend_inboxes_list_labels` | Returns every label on the inbox, oldest first. |
> | `resend_inboxes_list_thread_emails` | Returns the messages of a thread, oldest first. |
> | `resend_inboxes_list_threads` | Returns the threads in an inbox, most recently active first. |
> | `resend_inboxes_remove` | Removes the inbox. |
> | `resend_inboxes_remove_draft` | Discards an unsent draft. |
> | `resend_inboxes_remove_label` | Deletes the label and removes it from every thread that carries it. |
> | `resend_inboxes_remove_thread` | Moves the thread to 'trash' and schedules it for deletion in 30 days. |
> | `resend_inboxes_remove_thread_label` | Takes one label off the thread. |
> | `resend_inboxes_reply_thread_email` | Sends a reply from the inbox address right away, with no stored draft. |
> | `resend_inboxes_search_threads` | Finds threads by the text of their emails, who sent or received them, whether they have attachments, and their dates. |
> | `resend_inboxes_send_draft` | Sends the draft from the inbox address. |
> | `resend_inboxes_set_thread_labels` | Replaces every label on the thread with the given labels, in one atomic change. |
> | `resend_inboxes_update` | Updates the internal name of the inbox or the name recipients see when mail is sent from it. |
> | `resend_inboxes_update_agent` | Updates the agent settings of the inbox. |
> | `resend_inboxes_update_draft` | Updates the content of an unsent draft. |
> | `resend_inboxes_update_label` | Renames or recolors a label. |
> | `resend_inboxes_update_thread` | Marks a thread read or unread, or moves it to a folder. |
> | `resend_logs_get` | Retrieve a single log |
> | `resend_logs_list` | Retrieve a list of logs |
> | `resend_oauth_list_grants` | Retrieve a list of OAuth grants |
> | `resend_oauth_revoke_grant` | Revoke an OAuth grant |
> | `resend_segments_create` | Create a new segment |
> | `resend_segments_get` | Retrieve a single segment |
> | `resend_segments_list` | Retrieve a list of segments |
> | `resend_segments_list_contacts` | Retrieve a list of contacts in a segment |
> | `resend_segments_remove` | Remove an existing segment |
> | `resend_segments_update` | Update an existing segment |
> | `resend_suppressions_add` | Create a suppression |
> | `resend_suppressions_batch_add` | Add up to 100 suppressions at once |
> | `resend_suppressions_batch_remove` | Remove up to 100 suppressions at once |
> | `resend_suppressions_get` | Retrieve a single suppression by ID or email |
> | `resend_suppressions_list` | Retrieve a list of suppressions |
> | `resend_suppressions_remove` | Remove a single suppression by ID or email |
> | `resend_templates_create` | Create a template |
> | `resend_templates_duplicate` | Duplicate a template |
> | `resend_templates_get` | Retrieve a single template |
> | `resend_templates_list` | Retrieve a list of templates |
> | `resend_templates_publish` | Publish a template |
> | `resend_templates_remove` | Remove an existing template |
> | `resend_templates_update` | Update an existing template |
> | `resend_topics_create` | Create a new topic |
> | `resend_topics_get` | Retrieve a single topic |
> | `resend_topics_list` | Retrieve a list of topics |
> | `resend_topics_remove` | Remove an existing topic |
> | `resend_topics_update` | Update an existing topic |
> | `resend_usage_get` | Retrieve your account's current usage and plan limits. |
> | `resend_webhooks_create` | Create a new webhook |
> | `resend_webhooks_get` | Retrieve a single webhook |
> | `resend_webhooks_get_event` | Retrieve a single webhook event |
> | `resend_webhooks_list` | Retrieve a list of webhooks |
> | `resend_webhooks_list_event_attempts` | Retrieve a list of webhook event attempts |
> | `resend_webhooks_list_events` | Retrieve a list of webhook events |
> | `resend_webhooks_remove` | Remove an existing webhook |
> | `resend_webhooks_replay_event` | Queues one more delivery of the event to the webhook. |
> | `resend_webhooks_rotate_signing_secret` | Generates a new signing secret for the webhook and returns it. |
> | `resend_webhooks_update` | Update an existing webhook |

## Frequently asked questions

> [accordion] Can an agent send up to 100 emails in one call?
>
> Yes. The `resend_emails_send_batch` tool triggers up to 100 batch emails at once.

> [accordion] Does Guild support Resend webhook events as agent triggers?
>
> Not yet. The catalog entry for `guildai~resend` lists no webhook events, so incoming Resend events cannot trigger a Guild agent run today.

> [accordion] Can I limit an agent to read-only access on my Resend credential?
>
> Yes. Write a [credential policy](https://docs.guild.ai/platform/credential-policies.md) that allows only operations matching `*_get`, `*_list`, or `*_metrics` and denies everything else. Guild's proxy enforces the rules before any request reaches Resend.

> [accordion] Can I give one agent its own Resend API key separate from the workspace credential?
>
> Yes. On the installed agent's page, connect a dedicated credential for Resend. Guild stores it under the account that owns the workspace and uses it only for that agent's runs.

## Put a governed agent on Resend this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Resend.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Resend to your first agent.

## Related

**Also runs on Guild:** [Ably](https://docs.guild.ai/integrations/ably.md) · [Customer.io](https://docs.guild.ai/integrations/customer-io.md) · [Daily](https://docs.guild.ai/integrations/daily.md) · [Discord](https://docs.guild.ai/integrations/discord.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
