Auth APIs/Email
Email Test
POST
/auth/email-testSend a test email. User email must be verified.
Bearer token required
Content-Type:
application/jsonRequest Body
| Name | Type | Required | Description |
|---|---|---|---|
subject | string | Required | |
body | string | Required |
Request Example
JSON
{
"subject": "Open VTS Email Test",
"body": "This is a test email from Open VTS."
}Response Example
200 OK
{
"action": true,
"message": "Test email sent",
"data": {
"messageId": "<abc123@smtp.example.com>",
"resolvedVia": "admin_smtp"
}
}Code Examples
curl -X POST 'https://<your-domain>:3001/auth/email-test' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"subject": "Open VTS Email Test",
"body": "This is a test email from Open VTS."
}'