Test Alert Rule
Queues a one-shot "test" notification on every channel configured for the rule. Lets you verify webhook signatures, email deliverability, and the rendered notification payload without waiting for a real threshold crossing.
The call returns 202 Accepted immediately; the alert-worker picks the request up on its next poll cycle and dispatches the test, then records a status:"test" row on the rule's events list.
A rule that emails an address that isn’t a current member’s verified email ("outside_account": true on Get) sends no test: the call answers 409 until an update replaces or removes the address.
Path parameters
uuid string (uuid) Req
Alert rule UUID.
Errors
401 Unauthorized
Missing auth.
403 Forbidden
Plan doesn't include the
metric_alerts entitlement.404 Not Found
No rule with that UUID owned by the caller.
409 Conflict
The rule emails an address that isn’t a current member’s verified email:
This alert emails an address that isn’t a member’s verified email. Replace it with a member’s verified email to edit or test it. No test is sent.Request
curl -X POST "https://api.ngris.com/v1/traffic/alerts/019c12ab-1cf9-7acd-9ca4-e05a5284d4d8/test" \
-H "X-API-KEY: <your_api_key>" \
-H "Content-Type: application/json"
Response — 202 Accepted
{
"status": "queued",
"message": "Test notification queued for every configured channel."
}
Response — 409 (the rule emails an address that isn’t a member’s)
{
"error": "This alert emails an address that isn't a member's verified email. Replace it with a member's verified email to edit or test it."
}
Was this helpful?