API v2

Send email, manage subscribers, campaigns, and domains. Auth is a Bearer lum_ token.

Send an email

curl -X POST https://lumail.io/api/v2/emails \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Welcome",
    "html": "<p>Hello</p>"
  }'

Returns { "id": "eml_..." }. Full contract: Send Email.

Every v2 error uses { name, message, statusCode } plus optional details. 429 includes Retry-After. Lists use { object: "list", data, has_more } with limit / after / before.

Resources