WeOut Email API

Version 1.0.0 - Simple Email Sending Service

GET

/api/health

Check API health status

Example

Request:

curl -X GET https://mail.weoutsas.com/api/health

Response:

{
    "status": "ok",
    "timestamp": "2025-11-09T10:46:25+00:00",
    "service": "WeOut Email API",
    "version": "1.0.0"
}
POST

/api/send-email

Send an email

Parameters

to
Required. Recipient email address
subject
Required. Email subject (max: 255 characters)
body
Required. Email body content (plain text or HTML)

Example

Request:

curl -X POST https://mail.weoutsas.com/api/send-email \
  -H "Content-Type: application/json" \
  -d '{
    "to": "recipient@example.com",
    "subject": "Hello from WeOut",
    "body": "This is a test email from the WeOut Email API."
  }'

Success Response (200):

{
    "success": true,
    "message": "Email sent successfully",
    "email_id": "3d1590af-3e5c-43a3-a467-4fda829b4ab7"
}

Validation Error Response (422):

{
    "success": false,
    "message": "Validation failed",
    "errors": {
        "to": ["The to field must be a valid email address."],
        "subject": ["The subject field is required."],
        "body": ["The body field is required."]
    }
}