Send emails
with FastAPI

I deeply value the principles of Python's Zen, and the Resend API design aligns perfectly with this philosophy. It's a fantastic fit for Python projects, offering both ease of use and elegance.

Henrique Bastos

Python developer since 1999

import resend
from typing import Dict
from fastapi import FastAPI
resend.api_key = "re_xxxxxxxxx"
app = FastAPI()
@app.post("/")
def send_mail() -> Dict:
params: resend.Emails.SendParams = {
"from": "onboarding@resend.dev",
"to": ["delivered@resend.dev"],
"subject": "Hello World",
"html": "<strong>it works!</strong>",
}
email: resend.Email = resend.Emails.send(params)
return email

Send with FastAPI

Configure your FastAPI application to send emails seamlessly with the Resend Python SDK. FastAPI's intuitive design makes integration quick and straightforward, allowing you to focus on building your core application.

All you need to get started

Resources to help you integrate email into your application quickly.

FastAPI Quickstart

Follow the step-by-step guide and learn how to send your first email using FastAPI.

FastAPI example

Clone the example repository to get started quickly with Resend using FastAPI.

API reference

Understand the REST API endpoints and each of the parameters that can be used.

  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest
  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest
  • "Our team loves Resend. It makes email sending so easy and reliable. After we switched to Dedicated IPs, our deliverability improved tremendously and we don't hear complaints about emails landing on spam anymore."
    Vlad MatsiiakoCo-founder of Infisical
  • "As a developer I love the approach that the Resend team is taking. Its so refreshing. They are also extremely user-centric and helpful in terms of getting you up and running, sending beautiful emails that deliver."
    Hahnbee LeeCo-Founder at Mintlify
  • "We value tools that feel stable, well thought out, and aligned with the standards we expect across our stack. Resend meets those expectations. It lets our team stay focused on building the larger platform rather than getting pulled into the overhead that typically comes with legacy email infrastructure."
    Bradley GreenwoodVP of Engineering at MrBeast
  • "Our partnership with Resend has been a great experience. They've made sure we can focus on what we do best—building our product and growing our business."
    Sahil LavingiaCEO of Gumroad
  • "Switching over to Resend from SendGrid marked a significant improvement in our email management. We started with a small test - waitlist emails for our iOS and Windows apps. Within 30 minutes, we were done."
    Thomas MannFounder & CEO of Raycast
  • "The simplicity and reliability of Resend allowed our engineers to focus on building features rather than troubleshooting email infrastructure."
    Amadeo PellicceConnectors, Agents and Automations Lead at Replit
  • "We're a small team with a lot on our plates. Email infrastructure is something we don't want to think about, and with Resend we don't have to."
    Peter SuhmOps at Tailwind
  • "The best part about taking Resend into production was that there was no friction at all."
    Tara NagarSoftware Engineer at Braintrust
  • "The flexibility of Resend is what we value most. It allows us to quickly adapt and refine our email communications as our products evolve."
    Glauber CostaFounder and CEO at Turso
  • "Resend is email with simpler APIs, better webhooks, and best-in-class debugging."
    Dan FarrellyCTO and Co-Founder of Inngest

Start sending in minutes

Resend delivers mission-critical emails for some
of the fastest growing teams.

Sign up for free