flags is the explanation of why a decision was made: the list of risk signals that
fired on the transaction. It is a top-level key of data — it does not live inside
decision. Each entry has four fields: code, category, severity, and description.
Do not confuse
flags with decision.reason. flags carries the full signals, with their
four fields. decision.reason is a short list of strings, with the same code
vocabulary, plus the custom_rule:<id> and entity_block:<kind>:<value> entries when
one of your rules or your entity list raised the decision. See
Response format and the catalog in
Flags.code values are a stable vocabulary, not a mirror of the engine
This is the point that matters: code is a public vocabulary, deliberately
decoupled from how the engine evaluates internally. Fraudeg adds and tunes signals
continuously — that is ongoing internal work — but the public codes do not change
because of it. When a new signal tells the same story as an existing code, it is added
to that code; you do not get a new code showing up every time the engine changes
internally.
severity is for prioritizing, not for calculating
severity (low / medium / high) is ordinal — it is for sorting signals by
importance when doing manual triage on a held transaction. It is not a
number: do not add it up, do not average it, do not use it to derive a score. That is what
risk_score is for, and it is a completely different axis.
If a code shows up that you do not recognize
Treat it as a generic signal and do not change your business logic because of it. The action that matters never comes from an individual reason — it comes fromdecision.type. See
Transaction decisions.
Categories
Signals are grouped by type: authentication, device, geography, network, velocity, user, payment, and shipping, among others. The category (category) tells you which
family the signal comes from — for example, VELOCITY_DEVICE_BURST falls in the velocity
category.
Where the full catalog is
This page explains how to readflags; it does not list the codes. The full catalog of
code values, with their category, severity, and description, lives in one place:
Flag catalog.
Next step: Transaction lifecycle.