Path Parameters
Query Parameters
Request Body
Email body content (HTML or plain text)
Sender email address. Either fromEmail or fromEmailId is required
ID of the sender email account. Either fromEmail or fromEmailId is required
Display name for the sender (optional)
Reply-to email address (optional)
Array of attachment objects (optional). Each attachment requires:
filename (string): Name of the file
content (string): Base64-encoded file content
mimeType (string): MIME type of the file (e.g., “application/pdf”)
curl -X POST "https://server.smartlead.ai/api/v1/send-email/initiate?api_key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "recipient@example.com",
"subject": "Welcome to SmartLead",
"body": "<h1>Hello!</h1><p>This is your welcome email.</p>",
"fromEmail": "sender@example.com",
"fromName": "SmartLead Team",
"replyTo": "support@example.com",
"attachments": []
}'
Response Codes
Invalid request parameters or malformed request body
Invalid or missing API key. Check your authentication.
The requested resource (campaign, lead, email account, etc.) does not exist or you don’t have access to it
Request validation failed. Check parameter types, required fields, and value constraints.
Too many requests. Please slow down and retry after the rate limit resets.
Server error occurred. Please try again or contact support if the issue persists.
API is temporarily unavailable or under maintenance. Please try again later.
{
"success": true,
"data": {
"message": "Email sent successfully",
"message_id": "msg_67890abcde"
}
}