Admin APIs/SMTP Configuration
Create SMTP Config
POST
/admin/smtpconfigBearer token required
ADMINContent-Type:
application/jsonRequest Example
JSON
{
"senderName": "Open VTS Alerts",
"host": "smtp.example.com",
"port": 587,
"email": "alerts@openvts.io",
"type": "TLS",
"username": "alerts@openvts.io",
"password": "smtp-password",
"replyTo": "support@openvts.io",
"isActive": true
}Code Examples
curl -X POST 'https://<your-domain>:3001/admin/smtpconfig' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"senderName": "Open VTS Alerts",
"host": "smtp.example.com",
"port": 587,
"email": "alerts@openvts.io",
"type": "TLS",
"username": "alerts@openvts.io",
"password": "smtp-password",
"replyTo": "support@openvts.io",
"isActive": true
}'