> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Decision reasons

> How to read flags: code, category, severity, and why the vocabulary is stable

`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`.

| Field | What it is |
| - | - |
| `code` | Stable public code — the one you program against, e.g. `AUTH_3DS_FAILED` |
| `category` | The type of signal the reason came from, e.g. `authentication` |
| `severity` | `low`, `medium`, or `high` — ordinal, for triage |
| `description` | Human-readable description of the signal, in English |

> [!NOTE]
>
> 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](https://docs.fraudeg.com/en/referencia/respuesta.md) and the catalog in
> [Flags](https://docs.fraudeg.com/en/referencia/flags.md).

## `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.

> [!TIP]
>
> 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`](https://docs.fraudeg.com/en/conceptos/score-y-decision) 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](https://docs.fraudeg.com/en/conceptos/decisiones.md).

## 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](https://docs.fraudeg.com/en/referencia/flags.md).

Next step: [Transaction lifecycle](https://docs.fraudeg.com/en/conceptos/ciclo-de-vida.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.