API ReferenceEmail
Send Email
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
to*string|
Recipient email address(es)
subject?string
Email subject line (required if not using template)
Length
1 <= length <= 200htmlContent?string
HTML email content (required if not using template)
Length
1 <= lengthtextContent?string
Plain text email content (auto-generated if not provided)
attachments?
Email attachments
Items
items <= 20templateId?string
Template ID to use for this email
Format
uuidtemplateData?
Template variables
inReplyToMessageId?string
Message ID to reply to (for email threading)
Format
uuidResponse Body
application/json
curl -X POST "https://samva.app/api/v1/email/send" \ -H "Content-Type: application/json" \ -d '{ "to": "user@example.com" }'{
"id": "string",
"status": "pending"
}