Send Email
POST /send
Sends a transactional email using your configured SMTP server.
Endpoint
Request
Example request:Request Body
Sending HTML Email
To send an HTML email, setis_html to true.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
POST /send — Send a transactional email
POST /send
Sends a transactional email using your configured SMTP server.
POST /send
curl -X POST http://localhost:8080/send \
-H "X-API-Key: lfy_your_key" \
-H "Content-Type: application/json" \
-d '{
"to":"hello@example.com",
"subject":"Welcome to Acme",
"body":"Thanks for signing up."
}'
| Field | Type | Required | Description |
|---|---|---|---|
to | string | ✅ | Recipient email address |
subject | string | ✅ | Email subject |
body | string | ✅ | Email body (plain text or HTML) |
is_html | boolean | No | Send the body as HTML |
is_html to true.
{
"to": "hello@example.com",
"subject": "Welcome",
"body": "<h1>Hello</h1><p>Thanks for signing up.</p>",
"is_html": true
}
{
"id": "log_abc123",
"to": "hello@example.com",
"subject": "Welcome to Acme",
"status": "sent",
"sent_at": "2026-07-22T09:30:00Z"
}
| Status | Description |
|---|---|
| 400 | Missing required field (to, subject, or body) |
| 401 | Invalid or missing API key |
| 422 | No SMTP configuration has been set up |
| 500 | SMTP server unreachable or authentication failed |