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

# Integration modes

> Synchronous, asynchronous, or batch: how the transaction comes in and how the decision goes out

Scoring has three integration modes. You choose one by the path you call, not with a
setting. The engine is the same in all three.

| | Synchronous | Asynchronous | Batch |
| - | - | - | - |
| How | `POST /v1/transactions/analyze` | `POST /v1/transactions/analyze/async` | You upload a file (CSV or Excel) in the dashboard |
| Programmable | Yes, with your API key | Yes, with your API key | No |
| Returns | The decision, in the same response | A `202` now; the decision arrives by webhook | A PDF + Excel report |
| Retry | Same `X-Idempotency-Key` | Same `X-Idempotency-Key` | — |

Identity is a separate surface (verifications + webhook), not a scoring mode.

## Synchronous

You send a transaction to the endpoint and get the decision in the same response: one
request per transaction. It requires your API key (`X-Api-Key`) and one `X-Idempotency-Key` per
transaction. Your payment flow waits for that response.

To test without live traffic, use `/analyze/sandbox` on the same API host. See
[Environments](https://docs.fraudeg.com/en/entornos.md) and [Your first transaction](https://docs.fraudeg.com/en/integrar/primera-transaccion.md).

## Asynchronous

You send the same transaction to `POST /v1/transactions/analyze/async`. You get a `202` with
the `transaction_id`, and the decision reaches you later as a signed webhook
(`transaction.analysis.completed`, or `rejected` / `failed`). You can also check its progress
with [`GET /v1/transactions/{transactionId}/analysis`](https://docs.fraudeg.com/en/referencia/estado-analisis).

Use this mode when your flow cannot wait for scoring or when you prefer to react to an
event. It requires an API key, an `X-Idempotency-Key`, and a webhook endpoint subscribed to those
events. This path is not configured in the dashboard: you choose it by calling this route.

Guide: [Asynchronous analysis](https://docs.fraudeg.com/en/integrar/analisis-asincrono.md). Route:
[POST /analyze/async](https://docs.fraudeg.com/en/referencia/analyze-async.md).

## Batch

> [!NOTE]
>
> This is done in the dashboard — there is no public endpoint.

You upload a CSV or Excel file (`.csv`, `.xls`, `.xlsx`) from the dashboard (`sandbox.fraudeg.com` or `fraudeg.com`). The file goes
through column mapping, ingestion, analysis, and report generation, and ends in two
downloadable files: a PDF and an Excel. There is no public endpoint to upload the file,
check its progress, or download the report.

See [File states](https://docs.fraudeg.com/en/referencia/estados-archivo.md) for the phases an uploaded
file goes through.

## Can I call this through the API?

Scoring a transaction, yes, in synchronous or asynchronous mode. Uploading a file, checking its status, or downloading the report, no
— those are dashboard actions. This is the permanent answer to that question; it does not change
until the opposite is documented right here.

Next step: [Risk score](https://docs.fraudeg.com/en/conceptos/score-y-decision.md).


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