> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verisoul.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

## Verisoul API v1

The Verisoul API is served at `api.verisoul.com` under the `/v1` prefix, for example `POST /v1/predict/user`. It uses the same API keys as the legacy API.

Verisoul provides a comprehensive set of APIs to help you integrate identity verification and fraud prevention into your applications. Below you'll find our core API sections.

> [card] [Predict API](https://docs.verisoul.ai/api-reference/v1/predict/user.md)
>
> Score a session for a user, or score an anonymous session

> [card] [Session API](https://docs.verisoul.ai/api-reference/v1/session/get.md)
>
> Retrieve a session and its scores at any time

> [card] [User API](https://docs.verisoul.ai/api-reference/v1/user/get.md)
>
> Retrieve, update and delete users, and list their sessions

> [card] [Lists API](https://docs.verisoul.ai/api-reference/v1/lists/get.md)
>
> Create and manage lists of users

> [card] [Phone API](https://docs.verisoul.ai/api-reference/v1/phone/post.md)
>
> Verify and validate phone numbers

> [card] [Face Match API](https://docs.verisoul.ai/api-reference/v1/face-match/session.md)
>
> Verify liveness and deduplicate users

> [card] [ID Check API](https://docs.verisoul.ai/api-reference/v1/id-check/session.md)
>
> Verify identity documents and match faces to ID photos

## Environments

Verisoul provides two environments for API access:

> [card] Production
>
> **Base URL:** `https://api.verisoul.com/v1`
>
> Use this environment for your live applications with real users.

> [card] Sandbox
>
> **Base URL:** `https://api.sandbox.verisoul.com/v1`
>
> Use this environment for development, testing, and integration.

Each environment requires its own API key. Make sure to use the appropriate API key for each environment.

## Authentication

All API endpoints are authenticated using secure API keys. You can find your API key in the [Verisoul Dashboard](https://dashboard.verisoul.ai) under **Settings → API Keys**. See [API Keys and Webhooks](https://docs.verisoul.ai/dashboard/api-keys-and-webhooks.md) for creating and rotating keys.

### Using Your API Key

> [!WARNING]
>
> Keep your API key secure and never expose it in client-side code. Your API key carries many privileges, so be sure to keep it secret.

To authenticate your API requests, include your API key in the request headers using the `x-api-key` header:

```bash theme={null}
curl -X GET "https://api.verisoul.com/v1/list" \
  -H "x-api-key: your-api-key-here"
```

## Moving from the legacy API

The legacy API at `api.prod.verisoul.ai` keeps working. Each field description in this reference names the legacy field it replaces, for example `Legacy: account_score`.

| Legacy | v1 |
| - | - |
| `POST /session/authenticate` | `POST /v1/predict/user` |
| `POST /session/unauthenticated` | `POST /v1/predict/anonymous` |
| `GET /session/{session_id}` | `GET /v1/session/{session_id}` |
| `GET`, `PUT`, `DELETE /account/{account_id}` | `GET`, `PUT`, `DELETE /v1/user/{user_id}` |
| `GET /account/{account_id}/sessions` | `GET /v1/user/{user_id}/sessions` |
| `GET /account/{account_id}/accounts-linked` | Linked users are in `user.relationships` on Get User |
| `POST`, `DELETE /list/{list_name}/account/{account_id}` | `POST`, `DELETE /v1/list/{list_name}/user/{user_id}` |
| `account` (request and response) | `user` |
| `decision`, `account_score` | `decisions.user_decision`, `decisions.user_score` |
| `bot` score | `session.decisions.automation_score` |
| `bot` event counts | `session.behavior.data` |
| `agent` | `session.device.data.agent` |


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