Alerts
Get emailed when tools start failing, webhooks back up, trunks lose registration, or a campaign stops itself.
An alert watches a metric for your team and emails the members you choose when it crosses a threshold. Use alerts for failed tools, delayed webhooks, trunks that lose registration, or a campaign paused by a DNCR check.
Open Alerts → New alert in the dashboard, or read the available signals:
curl https://api.kejue.co/v1/alerts/schema \
-H "Authorization: Bearer $KEJUE_API_KEY"Alerts must be available for your team. If you cannot access them, ask us to enable the feature. Creating or editing a rule also requires permission to read its source resources.
Create a rule
- Choose a signal and the tools, webhooks, extraction objects or SIP trunks to monitor. Optionally restrict the population to selected agents, or for call, outbound, campaign and DNCR signals to selected campaigns (
campaign_ids, up to 20). - Choose a lookback window, firing threshold, minimum sample count and how long the breach must persist. Set a recovery threshold and confirmation period.
- Select active Team members to receive email. You can choose up to 20 recipients.
- Review the historical preview, name the rule and save it. A preview does not send notifications.
For example: HTTP tool server errors above 5% over 60 minutes, with at least 100 invocations, sustained for two minutes. Recover once the rate stays at or below 3% for five minutes.
| Signal | What it measures |
|---|---|
| HTTP tool server errors | HTTP 5xx responses among attempted HTTP tool invocations |
| Tool timeouts or failures | Timed-out or failed tool invocations |
| Webhook attempt failures | Failed HTTP attempts, including retries |
| Webhook delivery failures | Deliveries that permanently failed or exhausted retries |
| Overdue webhooks | Deliveries pending or overdue by five minutes |
| Extraction processing failures | Failed processing attempts among completed attempts |
| Delayed extractions | Queued or running extractions older than five minutes |
| Extraction result condition | Successfully processed results matching a typed field condition |
| Outbound call failures | Failed outbound calls among finished outbound calls. Narrow it to chosen failure codes with failure_codes |
| Carrier and route errors | Outbound calls the carrier or route refused (SIP 5xx, capacity, rate limit, authentication) among finished outbound calls |
| Unanswered outbound calls | Outbound calls that ended without an answer. A rise means the answer rate dropped |
| Trunk registration failures | Registering SIP trunks that are not currently registered with the carrier or PBX |
| Outbound redial loops | Outbound jobs that have dialled more often than their retry policy allows |
| Campaigns paused automatically | Campaigns paused by a safety stop rather than an operator |
| Etisalat DNCR errors | Registry checks Etisalat did not answer, among checks sent to Etisalat |
| DNCR checks held by rate limits | DNCR checks held back by a rate limit, among all DNCR checks |
| Numbers on the DNCR registry | Destinations the registry blocked, among the numbers it answered for |
| Numbers DNCR cannot check | Destinations that are not a checkable UAE number or that the registry has no record of |
| DNCR connection failing | Outbound calls stopped because the DNCR connection or its credentials are unusable |
Choose rate for a percentage or count for a number of events. Note that a rate describes eligible invocations or attempts — not the percentage of your calls affected. Backlog, trunk registration, redial loops, automatic pauses, unresolved numbers, and DNCR connection signals use count. Call, trunk, and outbound signals monitor SIP trunks; campaign and DNCR signals need no resource selection.
You can also choose Create alert on a compatible board insight. We copy the supported filters into an independent rule. Later board edits do not change the saved alert.
Ready-made rules
GET /v1/alerts/schema returns presets: starting rules for outbound calling and DNCR. In the dashboard, pick one under New alert and it fills in the signal, thresholds and timing; you still choose the trunks or campaigns to watch and the recipients.
| Preset | Fires when |
|---|---|
| Carrier or route errors on a trunk | More than 20% of outbound calls fail with a carrier or route error in 15 minutes |
| Outbound call failure rate | More than 30% of outbound calls fail in 30 minutes |
| Answer rate drop | More than 90% of outbound calls go unanswered over an hour |
| Trunk registration lost | A registering trunk stays unregistered for 5 minutes |
| Outbound redial loop | Any job dials more often than its retry policy allows within an hour |
| Campaign paused automatically | A campaign is paused by a safety stop |
| Etisalat DNCR errors | More than 10% of DNCR checks sent to Etisalat fail in 15 minutes |
| DNCR quota slowing campaigns | More than 30% of DNCR checks are held by rate limits over 30 minutes |
| Many numbers on the DNCR registry | More than 25% of the numbers checked in an hour are registered |
| Numbers DNCR cannot check | More than 25 uncheckable numbers in an hour |
| DNCR connection failing | Any outbound call is stopped by an unusable DNCR connection |
Each preset also sets a minimum sample count, so a handful of calls cannot fire a rate rule. The schema response lists the exact values, and failure_codes lists the codes an outbound call failure rule can be narrowed to.
Incidents and recovery
A confirmed breach opens an incident and queues a firing email for each selected member. A confirmed recovery closes it and queues a recovery email. The incident keeps the rule configuration and observed values from that occurrence.
Empty windows, insufficient samples and processing failures cannot confirm recovery. Extraction-result rules require adequate successful processing coverage; the default is 80%.
Open a rule to see its current state and its incident history. Open an incident for its start and end, peak value, and whether the notifications were sent. You can also preview the rule. Sent means the email transport accepted the notification, not that it reached an inbox.
Pause or archive a rule to stop evaluation. Material rule edits close the current incident administratively; this is distinct from recovery. Changing only the recipients applies to future incidents. The dashboard's test-email action uses your signed-in session.
API access
Needs the relevant alerts:* permission. Owner/Admin can manage alerts, Builder can create and update, and Viewer can read.
| Operation | Purpose |
|---|---|
GET /alerts/schema | Available signals, presets, failure codes, windows and limits |
GET /alerts/recipients | Eligible Team members |
GET /alerts | List rules |
POST /alerts | Create a rule |
GET /alerts/{id} | Read a rule and its ETag |
PATCH /alerts/{id} | Update a rule |
DELETE /alerts/{id} | Archive a rule |
POST /alerts/preview | Preview a definition without sending notifications |
GET /alerts/incidents | List incidents, optionally filtered by rule |
GET /alerts/incidents/{id} | Read incident details and notifications |
Use an Idempotency-Key on public POST requests and If-Match when updating or archiving a saved rule. Responses paginate with opaque cursors. Complete request and response fields are in the API reference.
Limits
Keep up to 50 unarchived rules per team. Lookback windows are 5, 10, 15, 30, 60, 180, or 1440 minutes. Test and evaluation traffic stays excluded unless you explicitly include it.
Recipient eligibility is checked when saving and sending. Removing a member, revoking the Team entitlement, or pausing or archiving a rule can suppress pending messages.