Cases and review
When an event scores review, Defraudo opens a case for it: a work item for an analyst to confirm or overturn the verdict. Your system holds the action (the deposit, the withdrawal, the new account) until the case is decided, and then applies the decision itself: resolving a case does not change the event's original score or review verdict.
The case
- One case per event, whether the event was scored sync or async, and however many times it is resent.
- It keeps the score, decision and rule breakdown the event got when the case opened; later rule changes do not rewrite them.
- Status is
open,snoozedorresolved.
Deciding
| Decision | Result |
|---|---|
allow | The case is resolved. The identities of the event are marked trusted in Trustchain. |
block | The case is resolved. The identities are marked untrusted. |
snooze | The case stays in the queue until the snooze ends (1 minute to 30 days), then returns to open. Each snooze lowers its priority by 20 (not below 0), and waking does not restore it. |
allow and block are final: deciding a resolved case again returns 409. A reason can be up to 1024 characters; the dashboard requires one for allow and block.
Each resolution queues a signed case resolution webhook, and a snoozed case returning to the queue queues a case woke webhook. Both carry the project's environment. They are delivered once the project has a webhook URL and a signing secret. See Webhooks.
In the dashboard
The Cases page is the analyst's queue. It opens on open cases, oldest first. From it you can:
- filter by status, rule, score range, time, event type, account and assignee, and sort by age, score or band;
- open a case to see its score breakdown (active rules only), the event payload and the project's current thresholds;
- decide one case, or up to 100 at once; each case in a bulk decision succeeds or fails on its own;
- assign cases to an owner, admin or analyst of the project, or clear the assignment.
Owners, admins and analysts can decide cases. Viewers can read them, without the event payload, IP addresses or device ids.
Through the API
| Endpoint | Does |
|---|---|
GET /v1/cases?project_id=… | The queue, by priority and then oldest first. status=active (default) returns open and snoozed cases, status=all every case. page_size defaults to 20, at most 100. No other filters are accepted. |
GET /v1/cases/{caseId} | One case. |
POST /v1/cases/{caseId}/decide | Decides a case. |
Reading needs the cases:read scope and deciding needs cases:write. project_id must be the key's own project.
curl -X POST https://api.defraudo.com/v1/cases/case_01k3f7wz9re2xa8m4n0dpq5vjt/decide \
-H "Authorization: Bearer $DEFRAUDO_KEY" \
-H "Content-Type: application/json" \
-d '{ "decision": "snooze", "snooze_minutes": 120, "reason": "Waiting for documents" }'
snooze_minutes is required with snooze and refused with any other decision. The full schemas are in the API reference.