curl --request POST \
--url https://smtp.sendmux.ai/api/v1/emails/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": {
"email": "user@example.com",
"name": "John Smith"
},
"to": {
"email": "user@example.com",
"name": "John Smith"
},
"subject": "Welcome to SendMux",
"html_body": "<string>"
}
'{
"ok": true,
"data": {
"message_id": "eml_tz4a98xxat96iws9zmbrgj3a",
"status": "queued"
},
"meta": {
"request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}Queue a single email for delivery. Requires email.send permission.
curl --request POST \
--url https://smtp.sendmux.ai/api/v1/emails/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": {
"email": "user@example.com",
"name": "John Smith"
},
"to": {
"email": "user@example.com",
"name": "John Smith"
},
"subject": "Welcome to SendMux",
"html_body": "<string>"
}
'{
"ok": true,
"data": {
"message_id": "eml_tz4a98xxat96iws9zmbrgj3a",
"status": "queued"
},
"meta": {
"request_id": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.sendmux.ai/llms.txt
Use this file to discover all available pages before exploring further.
SendMux API key (smx_...)
Email subject line (max 998 chars, RFC 5322)
1 - 998^[^\r\n]*$"Welcome to SendMux"
HTML email content (max 10MB)
1 - 10485760Plain text alternative (max 10MB)
10485760Envelope sender for VERP support
254File attachments (max 10)
10Hide child attributes
Filename with allowed extension
1 - 255"invoice.pdf"
Base64-encoded file content
1MIME type override
"application/pdf"
base64 Email queued successfully
true Was this page helpful?