Send Emails via API (Transactional Email Guide)
Send transactional emails like OTPs, welcome messages, alerts, and custom emails using Voyant Email API with secure signature-based authentication.
Base URL: https://api.voyantnetworks.com
Endpoint:
• /v1/email/send
Endpoint:
• /v1/email/send
Official SDKs & Libraries
Use official SDKs for faster integration across platforms.
Node.js
Backend / Server-side
JavaScript (Browser)
Frontend / Web
Flutter
Mobile / Web Apps
Python
Backend / ML / Scripts
Field Values (Enums)
fromType → verify | noreply | support | alerts | billing | updates
language → en | hi | es | fr | de | pt | ru | ja
button.type → filled | outlined | text
Three Step Request Flow
Use any template below as emailData , sign the payload, then send a REST API request.
Step 1: Create Payload
{
"accountId":"...",
"projectId":"...",
"apiKey":"...",
"emailData": { ... }
}
Step 2: Generate Signature
signature =
HMAC_SHA256(
JSON.stringify(payload),
API_SECRET
)
Header:
x-signature: signature
Step 3: Send Request
POST /v1/email/send
Content-Type: application/json
Template Examples (Full)
All fields shown. Optional fields marked clearly.
{
"to": "user@email.com",
"language": "en",
"detectLocation": true,
"requestId": "req_123",
"fromType": "verify",
"replyTo": "support@example.com",
"templateName": "email_verification",
"templateData": {
"username": "John",
"otp": "123456",
"expiryMinutes": 10,
"deviceText": "Chrome on Windows"
}
}
• nonce must be exactly 10 characters
• OTP auto-generated if not provided
• Rate limits apply
• Invalid signature → request fails
• Signature must be sent in body (not header)
• OTP auto-generated if not provided
• Rate limits apply
• Invalid signature → request fails
• Signature must be sent in body (not header)
Next Steps
Manage and optimize your email API usage: