Skip to main content
A monitor watches a number in your scored traffic (how many transactions arrive, what share is approved, what share is blocked) and notifies you when that number leaves its normal range and when it comes back. Monitors are created and tuned in the dashboard; the webhook is the only part of them that reaches your backend. It travels over the common channel: the same headers, the same signature, the same secret, and the same retries. This page covers only what changes.

The events

A monitor.recovered only arrives if its monitor.triggered was sent first. Use it to close what you opened with the first one, and subscribe your endpoint to both.

How to subscribe

You need two things. Without either one, nothing arrives:
  1. An endpoint subscribed to the events. In the dashboard, Config › Webhooks: create or edit the endpoint and select monitor.triggered and monitor.recovered. Whoever configures it needs WEBHOOKS_MANAGE and, in addition, MONITORS_VIEW: a webhook only delivers what that person can see on screen.
  2. The monitor with the Webhook channel. In the monitor’s definition, “Notifies by” has to include Webhook. A monitor without that channel, or paused, does not notify by webhook when it leaves its range; the monitor.recovered for a notification that already went out does arrive.
The two monitors Fraudeg creates with your company (origin: "FRAUDEG") come with all channels turned on. Their values, their channels, and whether they are paused are up to you.

The payload

data is a closed list: it carries these fields and no others. A field with no value is not sent: do not expect null; treat missing and null the same. occurred_at is in UTC (Z); hour is in your company’s local time, with its offset.

metric

Rates go from 0 to 100 and are calculated over Fraudeg’s decisions.

condition

reason

A monitor.recovered with a reason other than NORMAL did not judge any number: it does not carry value, low, high, or source_approval_rate, volume is 0, and hour is the last hour that was judged.

Delivery

What is common to all events is in Signature and delivery: at least once, a 2xx is success, 10 seconds to respond, bounded retries, and signing with your company’s secret. What is specific to monitors:
  • Deduplicate by event_id. A resend of the same notification carries the same event_id. It is an opaque id: do not assume its format.
  • A definition change is another notification. If someone changes the metric or the condition, the same hour can be notified again with a new event_id.
  • Do not assume arrival order. Use transition and occurred_at.
  • There is no API read. Your API key does not read monitors; each one’s history is in the dashboard.