Skip to Content

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

  1. 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).
  2. Choose a lookback window, firing threshold, minimum sample count and how long the breach must persist. Set a recovery threshold and confirmation period.
  3. Select active Team members to receive email. You can choose up to 20 recipients.
  4. 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.

SignalWhat it measures
HTTP tool server errorsHTTP 5xx responses among attempted HTTP tool invocations
Tool timeouts or failuresTimed-out or failed tool invocations
Webhook attempt failuresFailed HTTP attempts, including retries
Webhook delivery failuresDeliveries that permanently failed or exhausted retries
Overdue webhooksDeliveries pending or overdue by five minutes
Extraction processing failuresFailed processing attempts among completed attempts
Delayed extractionsQueued or running extractions older than five minutes
Extraction result conditionSuccessfully processed results matching a typed field condition
Outbound call failuresFailed outbound calls among finished outbound calls. Narrow it to chosen failure codes with failure_codes
Carrier and route errorsOutbound calls the carrier or route refused (SIP 5xx, capacity, rate limit, authentication) among finished outbound calls
Unanswered outbound callsOutbound calls that ended without an answer. A rise means the answer rate dropped
Trunk registration failuresRegistering SIP trunks that are not currently registered with the carrier or PBX
Outbound redial loopsOutbound jobs that have dialled more often than their retry policy allows
Campaigns paused automaticallyCampaigns paused by a safety stop rather than an operator
Etisalat DNCR errorsRegistry checks Etisalat did not answer, among checks sent to Etisalat
DNCR checks held by rate limitsDNCR checks held back by a rate limit, among all DNCR checks
Numbers on the DNCR registryDestinations the registry blocked, among the numbers it answered for
Numbers DNCR cannot checkDestinations that are not a checkable UAE number or that the registry has no record of
DNCR connection failingOutbound 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.

PresetFires when
Carrier or route errors on a trunkMore than 20% of outbound calls fail with a carrier or route error in 15 minutes
Outbound call failure rateMore than 30% of outbound calls fail in 30 minutes
Answer rate dropMore than 90% of outbound calls go unanswered over an hour
Trunk registration lostA registering trunk stays unregistered for 5 minutes
Outbound redial loopAny job dials more often than its retry policy allows within an hour
Campaign paused automaticallyA campaign is paused by a safety stop
Etisalat DNCR errorsMore than 10% of DNCR checks sent to Etisalat fail in 15 minutes
DNCR quota slowing campaignsMore than 30% of DNCR checks are held by rate limits over 30 minutes
Many numbers on the DNCR registryMore than 25% of the numbers checked in an hour are registered
Numbers DNCR cannot checkMore than 25 uncheckable numbers in an hour
DNCR connection failingAny 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.

OperationPurpose
GET /alerts/schemaAvailable signals, presets, failure codes, windows and limits
GET /alerts/recipientsEligible Team members
GET /alertsList rules
POST /alertsCreate 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/previewPreview a definition without sending notifications
GET /alerts/incidentsList 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.

On this page