Mail API

Email sending API with automatic DKIM signing.

Endpoint

POST https://mail.mano.app/api/send

Headers

X-API-Key: your_api_key
Content-Type: application/json

Body

{
  "to": "[email protected]",
  "subject": "Hello",
  "html": "<p>Email content</p>",
  "text": "Plain text part (optional, auto-generated from html if missing)",
  "from": "[email protected]",
  "from_name": "My App",
  "reply_to": "[email protected]",
  "attachments": [
    { "filename": "invoice.pdf", "content": "<base64>", "type": "application/pdf" }
  ]
}

"from" must belong to the API key's domain. Attachments: base64, max 10MB total.

Response

{
  "success": true,
  "message_id": "msg_abc123"
}

Error codes

401/403 domain_not_configured   invalid key or "from" outside the key's domain
400     invalid_attachments      missing filename/content or bad base64
400     attachments_too_large    over 10MB decoded

Admin Panel