curl -X POST https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/alerts/test \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"alert_type": "security_incident",
"recipient": "security@example.com"
}'
{
"sent": true,
"message": "Test alert sent successfully"
}
Control Plane API
Alerts
Test alert configurations
POST
/
api
/
v1
/
tenants
/
{tenant_id}
/
alerts
/
test
curl -X POST https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/alerts/test \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"alert_type": "security_incident",
"recipient": "security@example.com"
}'
{
"sent": true,
"message": "Test alert sent successfully"
}
Test alert configurations to ensure they’re working correctly.
curl -X POST https://cp.gosentrix.io/api/v1/tenants/{tenant_id}/alerts/test \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"alert_type": "security_incident",
"recipient": "security@example.com"
}'
{
"sent": true,
"message": "Test alert sent successfully"
}
Notes
- Requires tenant admin role
- Test alerts are sent immediately
- Use to verify alert delivery configuration