Esta página no está disponible en español. Se muestra la versión en inglés.

Resend connector

Send transactional and broadcast email through Resend, and manage contacts, domains, and templates, from AgentRuntime workflows.

En esta página

Resend is an email service for sending email from your own domain. The resend connector lets workflow steps send single or batch emails, run broadcast campaigns, and manage contacts, segments, topics, domains, templates, webhooks, and automations in your Resend account.

Typical uses: tell your team when a workflow finishes, email a customer a receipt or report, and keep a Resend contact list in step with another system.

Prerequisites

  • A Resend account.
  • A sending domain verified in Resend, and a sender address on it (for example notifications@yourdomain.com). Resend also offers a test sender for early experiments; see Resend's own documentation for its limits.
  • A Resend API key. A key with sending access is enough for the email tools. Tools that manage contacts, domains, templates, webhooks, and API keys may need a key with full access.
  • The project_contributor role or higher in your workspace.

Connect in AgentRuntime

  1. Get a Resend API key

    In the Resend dashboard, add and verify your sending domain (Resend shows the DNS records to create). Then open API Keys, create a key, and copy it. Resend shows the full key only once.

  2. Create a connection

    Open Connections in the Console and click New custom connection. Enter a Display name (for example Resend). Under Credentials, add one row per setting, using Add field for more rows:

    • Key api_key, Value your Resend API key.
    • Key from_email, Value your verified sender address, for example notifications@yourdomain.com.

    Click Save. The dialog also asks who can use the connection; choose the option that fits your team.

  3. Add the resend MCP instance

    Open MCP, click Add connectors, find resend, and add it to your workspace. Open the instance, and on Instance config create or open a profile, choose your connection in the Connection picker, set the profile Status to Active, and click Save, then Use this profile for workflows.

  4. Smoke test

    In Workflow Studio, add a connector tools step that calls resend_send_email to your own address (see the example below) and run it. A result with an email_id and status queued means Resend accepted the message.

See Authentication for how connections are attached to MCP instances.

What you can build

  • Workflow completion alerts. After a run succeeds or fails, call resend_send_email with the run name and a short summary.
  • Weekly digest. Query your data with the Postgres connector, let an LLM step write the summary, then send it with resend_send_email.
  • Welcome and onboarding email. When a new sign-up arrives, call resend_create_contact to add them to Resend and resend_send_email to greet them.
  • Campaigns. Create a broadcast with resend_create_broadcast and send or schedule it with resend_send_broadcast, after a human step approves the content.

Tools

The connector exposes 87 tools. Tools that send email or change or delete data in your Resend account are marked in the description. Tools without a mark only read data.

Sending and sent email

ToolWhat it does
resend_send_emailSend one email. Sends email. The sender is your configured from_email.
resend_send_batch_emailsSend up to 100 emails in one call. Sends email.
resend_list_emailsList sent emails.
resend_get_emailGet one sent email by ID.
resend_cancel_emailCancel a scheduled email. Changes data.
resend_update_emailReschedule a scheduled email. Changes data.
resend_list_email_attachmentsList attachments on a sent email.
resend_get_email_attachmentGet one attachment of a sent email.

Received email

ToolWhat it does
resend_list_received_emailsList emails received by your Resend inbox.
resend_get_received_emailGet one received email by ID.
resend_list_received_email_attachmentsList attachments on a received email.
resend_get_received_email_attachmentGet one attachment of a received email.

Broadcasts and audiences

ToolWhat it does
resend_list_audiencesList the names of your audiences.
resend_create_broadcastCreate a broadcast campaign. Changes data.
resend_list_broadcastsList broadcasts.
resend_get_broadcastGet one broadcast by ID.
resend_update_broadcastUpdate a broadcast's name, segment, sender, subject, or content. Changes data.
resend_send_broadcastSend a broadcast now or schedule it. Sends email.
resend_remove_broadcastDelete a broadcast. Deletes data.

Contacts

Tools that take a contact accept either contact_id or email.

ToolWhat it does
resend_create_contactCreate a contact. Changes data.
resend_list_contactsList contacts, optionally for one segment.
resend_get_contactGet one contact.
resend_update_contactUpdate a contact's name, subscription status, or properties. Changes data.
resend_remove_contactDelete a contact. Deletes data.
resend_list_contact_segmentsList the segments a contact belongs to.
resend_add_contact_segmentAdd a contact to a segment. Changes data.
resend_remove_contact_segmentRemove a contact from a segment. Changes data.
resend_list_contact_topicsList a contact's topic subscriptions.
resend_update_contact_topicsChange a contact's topic subscriptions. Changes data.
resend_create_contact_importBulk-import contacts from CSV content or a URL. Changes data.
resend_list_contact_importsList contact imports.
resend_get_contact_importGet the status of one import.
resend_list_contact_propertiesList custom contact properties.
resend_get_contact_propertyGet one contact property.
resend_create_contact_propertyCreate a contact property. Changes data.
resend_update_contact_propertyUpdate a contact property's fallback value. Changes data.
resend_remove_contact_propertyDelete a contact property. Deletes data.

Segments and topics

ToolWhat it does
resend_list_segmentsList segments.
resend_get_segmentGet one segment.
resend_create_segmentCreate a segment. Changes data.
resend_remove_segmentDelete a segment. Deletes data.
resend_list_topicsList topics.
resend_get_topicGet one topic.
resend_create_topicCreate a topic. Changes data.
resend_update_topicUpdate a topic's name or description. Changes data.
resend_remove_topicDelete a topic. Deletes data.

Templates

ToolWhat it does
resend_list_templatesList email templates.
resend_get_templateGet a template by ID or alias.
resend_create_templateCreate a template draft. Changes data.
resend_update_templateUpdate a template's details or HTML. Changes data.
resend_duplicate_templateCopy a template as a new draft. Changes data.
resend_publish_templatePublish a template. Changes data.
resend_remove_templateDelete a template. Deletes data.

Domains

ToolWhat it does
resend_list_domainsList domains.
resend_get_domainGet a domain, including its DNS records.
resend_create_domainAdd a domain and get the DNS records to create. Changes data.
resend_update_domainChange a domain's tracking and TLS settings. Changes data.
resend_verify_domainAsk Resend to check the domain's DNS records.
resend_remove_domainDelete a domain. Deletes data.
resend_create_domain_claimStart a domain ownership claim. Changes data.
resend_get_domain_claimGet the status of a domain claim.
resend_verify_domain_claimVerify a domain claim.

Webhooks, events, and automations

ToolWhat it does
resend_list_webhooksList Resend webhooks.
resend_get_webhookGet one webhook.
resend_create_webhookCreate a webhook for Resend email events. Changes data.
resend_update_webhookUpdate a webhook's endpoint, events, or status. Changes data.
resend_remove_webhookDelete a webhook. Deletes data.
resend_list_eventsList event definitions.
resend_get_eventGet one event definition.
resend_create_eventCreate an event definition. Changes data.
resend_update_eventUpdate an event's schema. Changes data.
resend_remove_eventDelete an event definition. Deletes data.
resend_send_eventSend an event for a contact to trigger automations. Changes data.
resend_list_automationsList automations.
resend_get_automationGet one automation.
resend_create_automationCreate an automation. Changes data.
resend_update_automationUpdate an automation. Changes data.
resend_remove_automationDelete an automation. Deletes data.
resend_list_automation_runsList runs of an automation.
resend_get_automation_runGet one automation run.

Account, keys, and logs

ToolWhat it does
resend_list_api_keysList API keys.
resend_create_api_keyCreate a Resend API key. Changes data.
resend_remove_api_keyDelete a Resend API key. Deletes data.
resend_list_oauth_grantsList OAuth grants on your Resend account.
resend_revoke_oauth_grantRevoke an OAuth grant. Changes data.
resend_list_logsList API request logs.
resend_get_logGet one log entry with request and response.

Key parameters

  • resend_send_email: to (required, a list of addresses), subject (required), and text and/or html. The sender is always your configured from_email; it is not a tool argument. If you give neither text nor html, the body is (empty body).
  • resend_send_batch_emails: emails (required), a list of 1 to 100 objects. Each has to (list), subject, text, and optionally html, from (defaults to your from_email), reply_to, cc, bcc, scheduled_at, tags, and topic_id.
  • resend_list_audiences: optional page_size (default 20, maximum 100). It returns audience names and a count only, not IDs.
  • resend_create_broadcast: name, segment_id, subject, and text are required; html, preview_text, from, and reply_to are optional. resend_send_broadcast takes broadcast_id and an optional scheduled_at.
  • resend_create_contact: email is required; first_name, last_name, unsubscribed, properties, segment_ids, and topics are optional.

Most management tools return the full Resend response as JSON text in raw_json.

Example

Email yourself a run summary:

{
  "id": "notify-complete",
  "type": "mcp",
  "name": "Email run summary",
  "instance_id": "YOUR_RESEND_INSTANCE_ID",
  "tool_name": "resend_send_email",
  "tool_args": {
    "to": ["ops@example.com"],
    "subject": "Workflow finished: {{input.workflow_name}}",
    "html": "<p>Run <strong>{{input.run_id}}</strong> completed.</p>"
  },
  "timeout_s": 30
}

In Studio you pick the instance and tool from lists, and Studio fills in instance_id.

Configuration

These are the settings on the instance's config profile. When you use a connection, give its credential rows the same key names.

KeyRequiredDescription
api_keyYesResend API key.
from_emailYesSender address used as From for resend_send_email. Must be on a verified domain.
api_baseNoResend API base URL. Default https://api.resend.com.
audience_idNoDefault audience ID for tools that do not take an audience argument.

Troubleshooting

IssueFix
resolved config is missing api_key or missing from_emailThe active profile does not have that setting. Add the api_key and from_email rows to the connection and check the profile is Active.
Resend API error 403 when sendingUsually the from_email domain is not verified in Resend, or the key lacks permission. Finish DNS verification and check the key's access level.
Resend API error 401The API key is wrong or was deleted. Create a new key and use Rotate on the connection.
Resend API error 429Resend's rate limit. The connector retries a few times; space out large loops.
Email lands in spamSet up SPF, DKIM, and DMARC for your sending domain in your DNS provider.
Editar esta páginaagentruntime-io/agentruntime-docs