You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

resend-ai-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resend-ai-sdk

Resend email tools for the AI SDK

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Resend - AI SDK Tools

Flash Brew Digital OSS MIT License Vercel AI SDK

A collection of AI SDK tools that give your AI agents the ability to send and manage emails using Resend.

Installation

npm install resend-ai-sdk

Setup

Set the following environment variables:

RESEND_API_KEY="your_resend_api_key"
RESEND_EMAIL_DOMAIN="your_verified_domain.com"

Get your API key from the Resend Dashboard.

You'll also need to verify your domain to send emails.

Usage

import { generateText, stepCountIs } from "ai";
import { sendEmail, listTemplates, getTemplate } from "resend-ai-sdk";

const { text } = await generateText({
  model: 'openai/gpt-5.2',
  tools: { sendEmail, listTemplates, getTemplate },
  prompt: "Find my welcome template and send it to user@example.com from hello@acme.com",
  stopWhen: stepCountIs(5),
});

Available Tools

ToolDescription
sendEmailSend an email with HTML, plain text, or a template
sendBatchEmailsSend multiple emails at once (up to 100)
getEmailRetrieve the status and metadata of a sent email
listEmailsList recently sent emails
listTemplatesList available email templates with pagination
getTemplateRetrieve a template's content, variables, and metadata
createContactAdd a new contact to your Resend account
listContactsList contacts in your account
removeContactRemove a contact permanently (requires approval)

AI SDK Library

Find other AI SDK agents and tools in the AI SDK Library.

Resources

Contributing

Contributions are welcome! Please read our Contributing Guide for more information.

License

MIT License

Author

Ben Sabic at Flash Brew Digital

Keywords

ai

FAQs

Package last updated on 03 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts