Send Email
POST /send
Sends a transactional email. Plain text is automatically wrapped in a clean HTML template. No branding, just your message.
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. Plain text is automatically wrapped in a clean HTML template. No branding, just your message.
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 aboard",
"body":"Thanks for signing up. Your account is ready."
}'
| Field | Type | Required | Description |
|---|---|---|---|
to | string | Yes | Recipient email address |
subject | string | Yes | Email subject |
body | string | Yes | Email body (plain text or HTML) |
is_html | boolean | No | Set to true if body is HTML |
{
"to": "hello@example.com",
"subject": "Welcome",
"body": "<h1>Hello</h1><p>Thanks for signing up.</p>",
"is_html": true
}
{
"log_id": "c3be8e9f-8608-4d18-bb4e-e97a86be74d6",
"status": "sent",
"sent_at": "2026-08-04T09:19:47Z"
}
| Status | Description |
|---|---|
| 400 | Missing required field |
| 401 | Invalid or missing API key |
| 500 | Delivery failed |