tools/integrations/resend.md
Developer-friendly transactional email service with modern API.
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | Simple REST API for sending emails |
| MCP | ✓ | Available via Resend MCP server |
| CLI | ✓ | Official Resend CLI |
| SDK | ✓ | Official SDKs for Node.js, Python, Go, etc. |
Authorization: Bearer {api_key}npm install -g resend-cli
resend login
# or set env var: RESEND_API_KEY=re_xxx
# Send a test email
resend emails send --from [email protected] --to [email protected] --subject "Test" --text "Hello"
# List recent emails
resend emails list
# Get email status
resend emails get <email_id>
# List domains
resend domains list
# Add a domain
resend domains create --name example.com
# Verify a domain
resend domains verify <domain_id>
# List API keys
resend api-keys list
# Create an API key
resend api-keys create --name "Production"
POST https://api.resend.com/emails
{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Welcome!",
"html": "<h1>Welcome to our app!</h1>"
}
POST https://api.resend.com/emails
{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Welcome!",
"react": "WelcomeEmail",
"props": {
"name": "John"
}
}
GET https://api.resend.com/emails/{email_id}
GET https://api.resend.com/emails
POST https://api.resend.com/emails/batch
[
{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Welcome User 1"
},
{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Welcome User 2"
}
]
GET https://api.resend.com/domains
POST https://api.resend.com/domains/{domain_id}/verify
npm install resend
import { Resend } from 'resend';
const resend = new Resend('re_xxx');
await resend.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Welcome!',
html: '<h1>Welcome!</h1>'
});
import { WelcomeEmail } from './emails/welcome';
await resend.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Welcome!',
react: WelcomeEmail({ name: 'John' })
});
queued - Email queued for deliverysent - Email sent to recipient serverdelivered - Email deliveredopened - Email opened (if tracking enabled)clicked - Link clicked (if tracking enabled)bounced - Email bouncedcomplained - Marked as spam| Event | When |
|---|---|
email.sent | Email sent |
email.delivered | Email delivered |
email.opened | Email opened |
email.clicked | Link clicked |
email.bounced | Email bounced |
email.complained | Spam complaint |