Send a single transactional email
/v1/send/emails/sendQueue a single email for delivery. Returns immediately with a message ID.
fromobjectrequiredtostring | string[]requiredccstring[]bccstring[]subjectstringrequiredtextstringhtmlstringtemplateIdstringtemplateDataobjectmetadataobjecttagsstring[]prioritystringnormalhighnormallowattachmentsobject[]You must provide either text, html, or templateId. If using templateId, you must also provide templateData.
curl -X POST "https://api.do.dev/v1/send/emails/send" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": { "email": "hello@example.com", "name": "My App" },
"to": "user@example.com",
"subject": "Welcome!",
"html": "<h1>Welcome to our platform</h1><p>Thanks for signing up.</p>"
}'{
"id": "msg_abc123def456",
"status": "queued",
"message": "Email queued for delivery"
}{
"error": "validation_error",
"message": "Missing required field: subject"
}