Skip to main content
For most use cases, the Resend SDK offers a better developer experience than calling the raw HTTP API directly. Resend maintains official, open source SDKs for Node.js, PHP, Python, Ruby, Go, Rust, Java, and .NET.
Recommendation: Use a Resend SDK for your language. Call the raw API directly only when no SDK exists for your stack.

Choosing between the SDK and API

Reach for the SDK unless you have a specific reason not to. It handles authentication, the required User-Agent header, request serialization, typed responses, and error handling for you. That leaves less boilerplate to get wrong.
Resend SDK (recommended)Raw HTTP API
Auth & headersHandled automaticallySet Authorization and User-Agent manually
Types & autocompleteBuilt inNone
ErrorsStructured error objectsParse status codes and JSON yourself
Maintained byResendYou

When to use the raw API directly

Calling the API directly is a good fit when:
  • There’s no official SDK for your language or runtime.
  • You’re making a one-off request and don’t want to add a dependency.
  • You’re building your own integration or wrapper.
If you do call the API directly, remember to set the required User-Agent header.

Next steps

Official SDKs

Install the SDK for your language.

Quickstart

Send your first email in minutes.

API Reference

Full HTTP API documentation.

MCP Server

Give your AI agent access to Resend.