Alerting & Response/Alert Channels & Integrations
POSTAlertingSince 1.0SynchronousAuth Required
TestAlertSmtpConfig
Test SMTP connectivity without saving the configuration Fixed RI-AN-NI01: standalone SMTP connectivity test
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
hostStringRequiredSMTP server hostname
Example: smtp.example.com
portIntegerRequiredSMTP server port
Example: 587
usernameStringRequiredSMTP authentication username
Example: alerts@example.com
passwordStringRequiredSMTP authentication password
Example: secret
encryptionStringRequiredEncryption mode: none, ssl, or starttls
Example: starttls
Responses
Endpoint
POST/api/v1/alerting/channels/smtp/test
/api/v1/alerting/channels/smtp/test
Request Example
curl -X POST '{host}/api/v1/alerting/channels/smtp/test' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"host":"smtp.example.com","port":587,"username":"alerts@example.com","password":"secret","encryption":"starttls","testRecipient":"ops@example.com"}'
Response Example
200{
"success": true,
"errorMessage": "authentication failed"
}Change History
This API has no change history records yet.
