Skip to main content
Once you’ve created a transactional email template, you can use it in your application via the AutoSend API.

API Endpoint

POST https://api.autosend.com/v1/mails/send

Authentication

Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY

Single Email with Template

Request:
curl -X POST https://api.autosend.com/v1/mails/send \
 -H "Authorization: Bearer YOUR_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
"to": {
"email": "[email protected]",
"name": "Jane Doe"
},
"from": {
"email": "[email protected]",
"name": "Your Company"
},
"subject": "Welcome to Our Platform!",
"html": "<h1>Welcome!</h1><p>Thanks for signing up.</p>"
}'
Response:
{
	"success": true,
	"data": {
		"emailId": "698afb75ff4bc5466e3a797a",
		"message": " Email queued successfully.",
		"totalRecipients": 1
	}
}

Quickstart Guides

Explore step-by-step guides for sending emails with AutoSend across popular frameworks and platforms:
https://mintcdn.com/autosend-13920f5c/6j5m-Y2eck3vmZRR/icons/brand-auth0.png?fit=max&auto=format&n=6j5m-Y2eck3vmZRR&q=85&s=34fd1c4556263317a0af5feebdb583ae

Auth0

Deliver Auth0 authentication emails through the AutoSend API using a Custom Email Provider Action.
https://mintcdn.com/autosend-13920f5c/6j5m-Y2eck3vmZRR/icons/brand-better-auth.png?fit=max&auto=format&n=6j5m-Y2eck3vmZRR&q=85&s=9077814dbca3606fed87b4c95dab955e

Better Auth

Send authentication emails for verification, password reset, and OTP with Better Auth.
https://mintcdn.com/autosend-13920f5c/4jN2Iy9d99ya5ZoA/icons/brand-convex.png?fit=max&auto=format&n=4jN2Iy9d99ya5ZoA&q=85&s=ec36415c0687fd8914ed336bfef4f48a

Convex

Use the official AutoSend Convex component for transactional emails with queueing, retries, and webhook.
https://mintcdn.com/autosend-13920f5c/UW89DqcO6mE68oMp/icons/brand-qstash.png?fit=max&auto=format&n=UW89DqcO6mE68oMp&q=85&s=a7a64043cf63faa11d691ad677a5960d

QStash

Use Upstash QStash to queue, schedule, retry, and reliably deliver emails through AutoSend.
https://mintcdn.com/autosend-13920f5c/6j5m-Y2eck3vmZRR/icons/brand-supabase.png?fit=max&auto=format&n=6j5m-Y2eck3vmZRR&q=85&s=27a50bfe5023781899919c817ca5be13

Supabase

Send transactional emails from Supabase Edge Functions using AutoSend.