Skip to content

Quickstart

  1. Get your API key

    Log in to the Venmail dashboard and navigate to Settings > API Keys. Click Create API Key, give it a name, and copy the key. You’ll only see it once.

  2. Verify your domain

    Go to Settings > Domains and add your sending domain. Add the DNS records shown (SPF, DKIM, return path). See Domain Setup for details.

  3. Send a test email

    Terminal window
    curl -X POST https://m.venmail.io/api/v1/send/message \
    -H "X-Server-API-Key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "to": ["[email protected]"],
    "from": "[email protected]",
    "subject": "Hello from Venmail",
    "html_body": "<h1>It works!</h1><p>Your first Venmail email.</p>"
    }'
  4. Check the response

    A successful response looks like:

    {
    "status": "success",
    "data": {
    "message_id": "[email protected]",
    "messages": {
    "[email protected]": { "id": 1234, "token": "abcdef" }
    }
    }
    }
Not authenticated
POST
X-Server-API-Key
Content-Type