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

# Authentication

> The X-Api-Key header and the scoring and identity scopes

Every request to the Fraudeg API that uses an API key is authenticated with:

```
X-Api-Key: <your-api-key>
```

The key belongs to **one** [environment](https://docs.fraudeg.com/en/entornos.md). To get one, see [Create your API key](https://docs.fraudeg.com/en/integrar/api-key.md).

## Scopes

| Scope | Paths |
| - | - |
| `TRANSACTIONS_WRITE` | The four analysis paths: `POST /v1/transactions/analyze`, `/analyze/sandbox`, `/analyze/async`, and `/analyze/async/sandbox`. Plus two reads by UUID: `GET /v1/transactions/{id}` (without score) and `GET /v1/transactions/{id}/analysis` |
| `KYC_WRITE` | `POST /v1/verifications` (and reads) |
| `KYC_READ` | `GET /v1/verifications` and `GET /v1/verifications/{id}` |

With an API key there is no transaction list, summary, or transaction events: those
paths belong to the dashboard and respond `403`.

> [!WARNING]
>
> An API key used on a path that does not accept API keys responds `403` with:
>
> ```
> "API keys are not permitted on this endpoint"
> ```

If your integration gets this error, confirm that the path is one of the scoring or
verification paths, and that the key has that path's scope.

On the analysis paths, the request also needs an
[`X-Idempotency-Key`](https://docs.fraudeg.com/en/integrar/idempotencia) per transaction. Identity does not: retries
are handled by `customer_ref`.

Next step: [Idempotency](https://docs.fraudeg.com/en/integrar/idempotencia.md).


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