Skip to main content
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.
You can switch on code with confidence. It is the surface designed to be programmed against — unlike the internal engine, which can change without notice, the code catalog is the stable contract. And since it is the same vocabulary in flags[].code and in decision.reason, the same switch works for both.

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 from decision.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 read flags; 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.