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

# GET /analysis

> Where a /analyze/async request stands, and its decision once there is one

```
GET {API_BASE}/v1/transactions/{transactionId}/analysis
```

`transactionId` is the `transaction_id` returned by the `202` from
[`/analyze/async`](https://docs.fraudeg.com/en/referencia/analyze-async). It requires an `X-Api-Key` with the
`TRANSACTIONS_WRITE` scope and only sees your company's requests. It doesn't take an `X-Idempotency-Key`.

It's the source of truth for the result: the webhook is the notice, this route is the state.

```bash theme={null}
curl https://api.fraudeg.com/api/v1/transactions/2ecfdd90-ff63-529c-9d32-2c46615b1546/analysis \
  -H "X-Api-Key: your_api_key"
```

## Response

```json theme={null}
{
  "data": {
    "transaction_id": "2ecfdd90-ff63-529c-9d32-2c46615b1546",
    "status": "DECIDED",
    "response": {
      "transaction_id": "2ecfdd90-ff63-529c-9d32-2c46615b1546",
      "order_id": "ORD-100234",
      "risk_score": 34.0,
      "risk_level": "medium",
      "flags": [
        {
          "code": "AUTH_3DS_MISSING",
          "category": "authentication",
          "severity": "medium",
          "description": "3DS authentication was not completed"
        }
      ],
      "recommendation": "Approve with light verification. Signals to watch: AUTH_3DS_MISSING.",
      "decision": {
        "type": "CONDITIONAL_APPROVE",
        "reason": ["AUTH_3DS_MISSING"],
        "confidence": 0.78,
        "conditions": [],
        "action": "MONITOR"
      },
      "transaction_state": "ANALYZED",
      "enforced": true
    },
    "code": null
  },
  "timestamp": "2026-11-03T14:06:00.12",
  "status": "OK"
}
```

| Field | Description |
| - | - |
| `transaction_id` | The one you queried |
| `status` | One of the statuses below |
| `response` | The decision, in the shape of the [`/analyze`](https://docs.fraudeg.com/en/referencia/respuesta) response. `null` except in `DECIDED` |
| `code` | Why it was rejected or failed. `null` except in `REJECTED` and `FAILED` |

Here nulls **are** sent (`response: null`, `code: null`), unlike in the
[webhooks](https://docs.fraudeg.com/en/webhooks/transacciones.md).

## Statuses

| `status` | Meaning | `response` | `code` |
| - | - | - | - |
| `QUEUED` | Accepted; scoring hasn't started yet | `null` | `null` |
| `SCORING` | Being scored, or waiting for an internal retry | `null` | `null` |
| `DECIDED` | There's a decision; it never changes | the decision | `null` |
| `REJECTED` | Something in your request or your configuration needs fixing | `null` | [`code`](https://docs.fraudeg.com/en/referencia/codigos-de-error) |
| `FAILED` | It failed on our side after all internal retries | `null` | `INTERNAL` |

`REJECTED` and `FAILED` can be resent with the **same** `X-Idempotency-Key` once
the cause is fixed.

> [!NOTE]
>
> After you resend a stopped key, the status may keep showing the previous result
> (`REJECTED` or `FAILED`) until the new request is picked up. Don't draw conclusions from a
> status read right after resending: wait for the new webhook or query again.

## Errors

[Error](https://docs.fraudeg.com/en/referencia/codigos-de-error.md) envelope:

| HTTP | `error_code` | When |
| - | - | - |
| `400` | `VALIDATION_ERROR` | `transactionId` isn't a valid identifier |
| `403` | `INSUFFICIENT_PERMISSIONS` | The key doesn't have `TRANSACTIONS_WRITE`, or is used on a route that doesn't accept API keys |
| `404` | `RESOURCE_NOT_FOUND` | See below |
| `409` | `STORED_RESPONSE_UNREADABLE` | The request is `DECIDED`, but its stored response can no longer be shown. The decision exists and doesn't change; resend with a new `X-Idempotency-Key` to get a readable one |
| `503` | `SERVICE_UNAVAILABLE` | It couldn't be queried. Wait for `Retry-After` and retry |

### `404`

A single `404` covers three cases, on purpose:

* The id doesn't match any of your requests.
* The id belongs to another company: it's never a `403`.
* The request is older than what's retained: 72 hours.

It can also happen right after a `202`, before the request shows up as
`QUEUED`. Retry for a few seconds before concluding the id is wrong.

## Reconcile

Once a day, query this route for every accepted `transaction_id` that has no result
in your system. Webhook delivery isn't guaranteed: this read covers what was lost,
and the state is only kept for 72 hours. See [Asynchronous analysis](https://docs.fraudeg.com/en/integrar/analisis-asincrono.md#reconcile).

Next step: [Asynchronous analysis](https://docs.fraudeg.com/en/integrar/analisis-asincrono.md).


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