Send Email
Send highly deliverable transactional and marketing emails with rich formatting, attachments, and engagement tracking.
Rich HTML & Text Support
Send beautiful HTML emails with fallback plain-text content automatically generated
Dynamic Templates
Pass dynamic variables directly to your pre-configured email templates
Domain Verification
Ensure high deliverability by sending only from authenticated domains (DKIM, SPF)
Engagement Tracking
Track opens, clicks, bounces, and complaints in real-time
Authentication Required
Use Basic Authwith the precomputed Base64 token from your dashboard. Copy the token directly and set it in the `Authorization` header as `Basic <token>`.
Avg Delivery Time
< 2s
To inbox
Cost per Email
₵0.01
Volume discounts apply
Max Size
10MB
Including attachments
Rate Limit
50/s
per API key
POST
/v1/email/send
Core
Stable
Request Body
application/json
JSON
{"to": "user@example.com","from": "noreply@yourdomain.com","fromName": "Acme","subject": "Welcome to Sendexa!","html": "<h1>Hello!</h1><p>Welcome to our platform.</p>","text": "Hello! Welcome to our platform.","tags": ["onboarding"],"replyTo": "support@yourdomain.com"}
Response
JSON
{"success": true,"message": "Email sent successfully","messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890","data": {"messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890","providerMessageId": "re_xxxxxxxxxxxx","to": ["user@example.com"],"suppressedCount": 0,"cost": 0.0001}}
Try It Yourself
POST
https://api.sendexa.co/v1/email/sendCode Examples
Bash
curl -X POST 'https://api.sendexa.co/v1/email/send' \-H 'Content-Type: application/json' \-H 'Authorization: Basic YOUR_DASHBOARD_BASE64_TOKEN' \-d '{"to": "user@example.com","from": "noreply@yourdomain.com","subject": "Hello from Sendexa!","html": "<p>Welcome to our platform!</p>"}'
Rate Limits
Burst limit for peak traffic
50 requests per second
Sustained rate limit
2000 requests per minute
HTTP Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Email queued successfully |
| 400 | Bad Request | Invalid email address or missing parameters |
| 401 | Unauthorized | Invalid or missing API credentials |
| 403 | Forbidden | Sending domain not verified or insufficient credits |
| 429 | Too Many Requests | Rate limit exceeded |
Best Practices
- Always authenticate your sending domains (SPF, DKIM, DMARC) for better deliverability.
- Provide both HTML and plain-text versions of your emails.
- Keep attachments small or link to external hosted files.
- Listen to webhooks for bounces and handle them properly by removing invalid emails from your lists.