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

# POST /verifications

> Create an identity verification

```
POST {API_BASE}/v1/verifications
```

`{API_BASE}` is the base URL for your [environment](https://docs.fraudeg.com/en/entornos.md):
`https://sandbox-api.fraudeg.com/api` or `https://api.fraudeg.com/api`.

Creates a verification and returns the `url` you send the person to. Requires the
`KYC_WRITE` scope. The API key stays on your server, never in the browser. See
[How it works](https://docs.fraudeg.com/en/identidad/como-funciona.md).

## Headers

| Header | Required |
| - | - |
| `X-Api-Key` | Yes |
| `Content-Type` | `application/json` |

There's no `X-Idempotency-Key`. The retry key is your `customer_ref`: while there's a
verification in progress for that reference, a second call returns **the same one**, doesn't
charge again, and gives you a `url` to continue.

## Request

```json theme={null}
{
  "customer_ref": "CUS-48213",
  "language": "en",
  "callback_url": "https://your-app.example.com/kyc/return"
}
```

| Field | Required | Details |
| - | - | - |
| `customer_ref` | No, but send it | Your identifier for the person. Maximum 128 characters |
| `template_code` | No | Which workflow to run. Without it, your default one is used |
| `language` | No | ISO 639-1, for the screens the person sees |
| `callback_url` | No | Where the person returns when they finish. `https`, or `http` on `localhost` |

**Always send `customer_ref`.** Without it, one is generated, and then the verification can't
be linked to your own record.

## Response

The envelope is `{ data, timestamp, status }`. On a successful creation, `status` is
`CREATED`.

```json theme={null}
{
  "data": {
    "id": 4821,
    "customer_ref": "CUS-48213",
    "session_token": "…",
    "url": "https://…",
    "status": "PENDING"
  },
  "timestamp": "2026-09-13T14:02:11",
  "status": "CREATED"
}
```

| Field | What you do with it |
| - | - |
| `id` | Store it in your record |
| `customer_ref` | Your identifier, or the generated one if you didn't send one |
| `url` | Give it to the person's browser, and only that |
| `session_token` | A credential. Don't log it, don't store it, don't put it in a shareable URL |
| `status` | On creation, `PENDING`. See [Identity decisions](https://docs.fraudeg.com/en/identidad/decisiones.md) |

## Errors

| HTTP | When |
| - | - |
| `400` | Malformed body |
| `401` | The key is missing, or is malformed, unknown, or revoked |
| `403` | The key can't use this route, or is missing `KYC_WRITE` |
| `422` | The request was understood and rejected (validation, not syntax) |

The error envelope is the platform one (`error_code`, `message`, `details`). See
[Error codes](https://docs.fraudeg.com/en/referencia/codigos-de-error.md).

Next: [GET /verifications](https://docs.fraudeg.com/en/referencia/verificacion.md).


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