Code Examples

Replace YOUR_API_KEY with your actual key from the Overview page, and yourdomain.com with a domain you've verified.

curl -X POST https://api.altermail-console.com.ng/v1/user/email/send \
  -H "Content-Type: application/json" \
  -H "token: YOUR_API_KEY" \
  -d '{
    "email": "recipient@example.com",
    "fromEmail": "hello@yourdomain.com",
    "subject": "Hello from Altermail",
    "mailBodyHtml": "<h1>Hello!</h1><p>This is a test email.</p>",
    "mailBodyText": "Hello! This is a test email."
  }'