- Multiple recepients
- Repeat
htmlsupport in bodyCcBccReply-toeverything supported
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Dashboard with lifetime metrics |
/auth |
POST | Authenticate with SMTP credentials, get token |
/send |
POST | Send email(s) with optional repeat |
Important
You must use an App Password, not your regular Gmail password.
- Go to your Google Account
- Navigate to Security → 2-Step Verification (enable if not already)
- Scroll down to App passwords or visit myaccount.google.com/apppasswords
- Select Mail and give it a name, then click Generate
- Copy the 16-character password (spaces don't matter)
- That's your app password which you need to use.
curl -X POST https://your-api.com/auth \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"xxxx xxxx xxxx xxxx"}'Response:
{"token": "abc123...", "expires_in_hours": 1, "message": "..."}# Single recipient
curl -X POST https://your-api.com/send \
-H "Content-Type: application/json" \
-H "X-Token: abc123..." \
-d '{"recipients":"[email protected]","subject":"Hello","body":"Hi there!"}'
# Multiple recipients with HTML
curl -X POST https://your-api.com/send \
-H "Content-Type: application/json" \
-H "X-Token: abc123..." \
-d '{
"recipients": ["[email protected]", "[email protected]"],
"subject": "Newsletter",
"body": "<h1>Hello!</h1><p>Welcome aboard.</p>",
"is_html": true
}'- Credentials encrypted at rest (Fernet/AES) : Go check the code, i have explained in detail!
- Tokens expire after 1 hour