RESTful API to send transactional emails. Simple, fast, reliable.
Sign up & generate key
Add DNS records
POST to /v1/messages/send
https://api.sendmator.com/v1/messages/send
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
{
"channel": ["email"],
"recipient_type": "direct_email",
"direct_email": "user@example.com",
"direct_first_name": "John",
"direct_last_name": "Doe",
"from_email": "noreply@yourdomain.com",
"from_name": "Your App Name",
"subject": "Welcome to Our Platform",
"content": "<h1>Welcome!</h1><p>Thanks for signing up.</p>",
"plain_text_content": "Welcome! Thanks for signing up.",
"attachment_ids": ["att_abc123"],
"metadata": {
"user_id": "12345",
"campaign": "onboarding"
}
}
{
"success": true,
"trigger_id": "trg_abc123",
"job_id": "job_xyz789",
"message": "Email queued successfully"
}
{
"success": false,
"error": "Invalid API key",
"code": "AUTH_FAILED"
}
curl -X POST https://api.sendmator.com/v1/messages/send \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"channel": ["email"],
"recipient_type": "direct_email",
"direct_email": "user@example.com",
"from_email": "noreply@yourdomain.com",
"subject": "Test Email",
"content": "<p>Hello World</p>"
}
EOF
const response = await fetch('https://api.sendmator.com/v1/messages/send', {
method: 'POST',
headers: {
'X-API-KEY': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
channel: ['email'],
recipient_type: 'direct_email',
direct_email: 'user@example.com',
from_email: 'noreply@yourdomain.com',
subject: 'Test Email',
content: 'Hello World
'
})
});
const data = await response.json();
console.log(data);
import requests
response = requests.post(
'https://api.sendmator.com/v1/messages/send',
headers={
'X-API-KEY': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'channel': ['email'],
'recipient_type': 'direct_email',
'direct_email': 'user@example.com',
'from_email': 'noreply@yourdomain.com',
'subject': 'Test Email',
'content': 'Hello World
'
}
)
print(response.json())
⚡ 96% faster setup
Average API response: 200ms. Emails delivered in seconds.
Email + SMS + WhatsApp + Push in one API. Save hours integrating multiple services.
TLS encryption, DKIM signing, SPF/DMARC support. 99.9% uptime.
Free signup credit. Full API access. No credit card required.
Get API Key →