email notification api endpoint 400 — Missing fields: { "error": "Missing required fields: to, subject, message" } 500 — Send failure: { "error": "Failed to send email" }
email notification api endpoint
400 — Missing fields: { "error": "Missing required fields: to, subject, message" }
500 — Send failure: { "error": "Failed to send email" }
POST https://eranol.com/api/v1/notifications/email
{
"to": "user@example.com",
"message": "<p>Your HTML email body</p>",
"subject": "Your email subject"
}
{
"job_id": "a1b2c3d4-...",
"message_id": "SES-message-id"
}
| Code | Meaning |
|---|---|
401 | Missing or invalid API key |
402 | Insufficient credits |
422 | Validation error — check your request body |
429 | Rate limit exceeded — slow down requests |
500 | Internal server error — try again or contact support |