This example shows how to use Resend with FastAPI.
To get the most out of this guide, you’ll need to:
- Create an API key
- Verify your domain
- Install
virtualenv
by runningpip install virtualenv
- Create and activate a new virtual env with:
virtualenv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Set your RESEND_API_KEY environment variable by running:
export RESEND_API_KEY="re_123456789"
- Execute the following command:
uvicorn main:app --reload
- Access the URL
http://127.0.0.1:8000/docs
and try it out.
MIT License