SDKs and AI tools

Official clients and AI integrations for the Resent API

Node.js SDK

npm install resent.one
import { Resent } from "resent.one";
const resent = new Resent(process.env.RESENT_API_KEY!);
const result = await resent.emails.send({
from: "Acme <noreply@yourdomain.com>",
to: ["you@example.com"],
subject: "hello world",
html: "<p>it works!</p>",
});
console.log(result.submission_id);

Rust SDK

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

Ruby SDK

gem install resent
require "resent"
resent = Resent.new(ENV.fetch("RESENT_API_KEY"))
result = resent.emails.send(
from: "Acme <noreply@yourdomain.com>",
to: "you@example.com",
subject: "hello",
html: "<p>hi</p>"
)

Go SDK

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

Python SDK

pip install resent
from resent import Resent
resent = Resent(os.environ["RESENT_API_KEY"])
result = resent.emails.send(
from_="Acme <noreply@yourdomain.com>",
to="you@example.com",
subject="hello",
html="<p>hi</p>",
)

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://developers.resent.one/_mcp/server

Full setup: MCP Server.