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

# Going to production

> Checklist before sending live traffic to /analyze

Before sending real traffic to `POST /v1/transactions/analyze` at
`https://api.fraudeg.com/api`, review these points. The production dashboard is
`https://fraudeg.com`. See [Environments](https://docs.fraudeg.com/en/entornos.md).

`/analyze/sandbox` **still exists** on the production API. Use it for a one-off test
against the mature model; live traffic goes to `/analyze`, without `/sandbox`.

### 1. Use the production API key

Replace any pre-official-integration key with the one you generated at
`https://fraudeg.com` (see [Create your API key](https://docs.fraudeg.com/en/integrar/api-key.md)). All production
traffic carries that key in `X-Api-Key`.

### 2. Handle the 5 values of `decision.type`

Your integration needs a branch for each one —
`APPROVE`, `CONDITIONAL_APPROVE`, `STEP_UP_AUTH`, `HOLD`, `BLOCK` — not just for
`APPROVE`/`BLOCK`. See [Transaction decisions](https://docs.fraudeg.com/en/conceptos/decisiones.md).

### 3. Generate a real `X-Idempotency-Key` per transaction

In testing it is common to reuse the same key. In production, every real transaction needs
its own (16 to 128 url-safe characters) — and a retry of the **same** transaction has to
reuse the **same** key.

### 4. Handle the two `409`s and the `422`

| Case | HTTP | What to do |
| - | - | - |
| Request **in flight** with that `X-Idempotency-Key` | `409` | Retry with backoff **and the same key**. `details` mentions *already in progress* |
| **Unreadable** stored response (earlier contract) | `409` | Retry with a **new key**. `details` mentions *can no longer be replayed*. The transaction is already scored |
| Same key, different payload | `422` | Do not retry with the same key: generate a new key for each different transaction |

Do not treat the two `409`s as the same case. See [Idempotency](https://docs.fraudeg.com/en/integrar/idempotencia.md).

Next step: [POST /analyze](https://docs.fraudeg.com/en/referencia/analyze.md).


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