API Credentials

Endpoint
API Key
Auth Header
x-api-key: <your-key>
Method
POST

Request Body JSON

{
  "from":    "you@yourdomain.com",   // required — must be a registered domain
  "to":      "recipient@example.com", // required
  "subject": "Hello",                // optional
  "html":    "<h1>Hi!</h1>",          // html or text required
  "text":    "Hi!",                   // plain-text fallback
  "cc":      "cc@example.com",       // optional
  "bcc":     "bcc@example.com"       // optional
}

Quick Start

curl -X POST https://mail.devv.be/api/send \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "from": "you@yourdomain.com",
    "to": "recipient@example.com",
    "subject": "Hello from DevvMail",
    "html": "<h1>It works!</h1>"
  }'

Response

200 OK
{ "success": true, "emailId": 5, "messageId": "abc...@devv.be" }
400 / 401
{ "error": "\"from\" is required" }