Quickstart
Send your first email
Section titled “Send your first email”-
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.
-
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.
-
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>"}'import { venmailSend } from '@venmail/vsm';// Or use fetch directly:const res = await fetch('https://m.venmail.io/api/v1/send/message', {method: 'POST',headers: {'X-Server-API-Key': 'YOUR_API_KEY','Content-Type': 'application/json',},body: JSON.stringify({subject: 'Hello from Venmail',html_body: '<h1>It works!</h1>',}),});console.log(await res.json());$ch = curl_init('https://m.venmail.io/api/v1/send/message');curl_setopt_array($ch, [CURLOPT_POST => true,CURLOPT_RETURNTRANSFER => true,CURLOPT_HTTPHEADER => ['X-Server-API-Key: YOUR_API_KEY','Content-Type: application/json',],CURLOPT_POSTFIELDS => json_encode(['subject' => 'Hello from Venmail','html_body' => '<h1>It works!</h1>',]),]);$response = curl_exec($ch);echo $response; -
Check the response
A successful response looks like:
{"status": "success","data": {"messages": {}}}
Try it now
Section titled “Try it now” Not authenticated
X-Server-API-Key
Content-Type
Next steps
Section titled “Next steps”- Send with custom headers for tracking and routing
- Set up webhooks for delivery events
- Enable VVS-1 signing for cryptographic message verification
- Install the Node.js or PHP SDK