SDKs and AI tools

Official clients and AI integrations for the Resent API

Node.js SDK

$npm install resent.one
1import { Resent } from "resent.one";
2
3const resent = new Resent(process.env.RESENT_API_KEY!);
4
5const result = await resent.emails.send({
6 from: "Acme <noreply@yourdomain.com>",
7 to: ["you@example.com"],
8 subject: "hello world",
9 html: "<p>it works!</p>",
10});
11
12console.log(result.submission_id);

Rust SDK

$cargo add resent
1use resent::{Resent, SendEmail};
2
3let resent = Resent::new(std::env::var("RESENT_API_KEY").unwrap());
4let result = resent
5 .emails()
6 .send(SendEmail::new("Acme <noreply@yourdomain.com>", ["you@example.com"], "hello").html("<p>hi</p>"))
7 .await?;

Ruby SDK

$gem install resent
1require "resent"
2
3resent = Resent.new(ENV.fetch("RESENT_API_KEY"))
4result = resent.emails.send(
5 from: "Acme <noreply@yourdomain.com>",
6 to: "you@example.com",
7 subject: "hello",
8 html: "<p>hi</p>"
9)

Go SDK

$go get github.com/resentmail/resent-go@v0.1.1
1client, err := resent.New(os.Getenv("RESENT_API_KEY"))
2result, err := client.Emails().Send(ctx, &resent.SendEmail{
3 From: "Acme <noreply@yourdomain.com>",
4 To: []string{"you@example.com"},
5 Subject: "hello",
6 HTML: "<p>hi</p>",
7})

Python SDK

$pip install resent
1from resent import Resent
2
3resent = Resent(os.environ["RESENT_API_KEY"])
4result = resent.emails.send(
5 from_="Acme <noreply@yourdomain.com>",
6 to="you@example.com",
7 subject="hello",
8 html="<p>hi</p>",
9)

PHP SDK

$composer require resent/resent
$# Laravel
$composer require resent/laravel
$# Symfony Mailer
$composer require resent/symfony-mailer

HTTP / cURL

Any language can call https://resent.one/api/v1 with:

Authorization: Bearer $RESENT_API_KEY

MCP Server

Connect AI assistants (Cursor, Claude Code, and others) to Resent docs via MCP:

https://resent.docs.buildwithfern.com/_mcp/server

Full setup: MCP Server.