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
	}
}