# Verify an identity by API

> Kontiga is document fraud detection by Bynn Intelligence for insurers, letting agents, lenders and HR screening teams: every document is compared with a proprietary library of more than 300 million original documents, gathered over 20 years.

Documentation index: https://kontiga.com/llms.txt

Section: Guides. URL: https://kontiga.com/docs/guides/verify-by-api

Start an identity verification from your server for someone in People, someone new, or a party of a case. Send them the link or share it yourself, then act on the result your server receives.

Updated December 1, 2026

## Before you start

- A key or a member allowed to write cases (`cases:write`): an Owner, Admin or Analyst, or a Developer in test mode.
- A verification profile: what the person is asked for, such as an ID document and a selfie. With none named, the workspace's default is used.
- In test mode nothing is billed. See [Test identity verifications](https://kontiga.com/docs/guides/verify-test-mode).

API:

```bash
curl -X GET https://api.kontiga.com/v1/verification_profiles \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga verification-profiles list
```

MCP tool `list_verification_profiles`:

```json
{
  "name": "list_verification_profiles",
  "arguments": {}
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.verificationProfiles.list();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.verification_profiles.list()
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.VerificationProfiles.List(ctx)
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.verificationProfiles().list();
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.VerificationProfiles.ListAsync();
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->verificationProfiles->list();
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.verification_profiles.list
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .verification_profiles()
    .list()
    .await?;
```

## Start the verification

Name the person one of three ways

| Give | For | Then |
| --- | --- | --- |
| `person_id` | Someone already in People. | Their steps still valid are reused. |
| `person` | Someone your system knows: your `reference`, or `first_name` and `last_name`, with an `email` or a `phone` for the link. | Found by your reference, then by the email, or added to People. |
| `case_id` with `party_id` | A party of a case. | The result is on the case, beside its documents. |

API:

```bash
curl -X POST https://api.kontiga.com/v1/identity_verifications \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "person": {
      "reference": "CUST-88412",
      "first_name": "Liam",
      "last_name": "Byrne",
      "email": "liam.byrne@mail.example"
    },
    "profile_id": "vpr_4Tk9Bm2",
    "deliver": "email",
    "reference": "LOAN-55120"
  }'
```

CLI:

```bash
kontiga identity-verifications create \
  --person '{"reference":"CUST-88412","first_name":"Liam","last_name":"Byrne","email":"liam.byrne@mail.example"}' \
  --profile-id vpr_4Tk9Bm2 \
  --deliver email \
  --reference LOAN-55120
```

MCP tool `start_identity_verification`:

```json
{
  "name": "start_identity_verification",
  "arguments": {
    "person": {
      "reference": "CUST-88412",
      "first_name": "Liam",
      "last_name": "Byrne",
      "email": "liam.byrne@mail.example"
    },
    "profile_id": "vpr_4Tk9Bm2",
    "deliver": "email",
    "reference": "LOAN-55120"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityVerifications.create({
  person: { reference: "CUST-88412", first_name: "Liam", last_name: "Byrne", email: "liam.byrne@mail.example" },
  profile_id: "vpr_4Tk9Bm2",
  deliver: "email",
  reference: "LOAN-55120",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.create(
    person={"reference": "CUST-88412", "first_name": "Liam", "last_name": "Byrne", "email": "liam.byrne@mail.example"},
    profile_id="vpr_4Tk9Bm2",
    deliver="email",
    reference="LOAN-55120",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityVerifications.Create(ctx, &kontiga.IdentityVerificationsCreateParams{
	Person:    map[string]any{"reference": "CUST-88412", "first_name": "Liam", "last_name": "Byrne", "email": "liam.byrne@mail.example"},
	ProfileId: "vpr_4Tk9Bm2",
	Deliver:   "email",
	Reference: "LOAN-55120",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityVerifications().create(IdentityVerificationsCreateParams.builder()
    .person(Map.of("reference", "CUST-88412", "first_name", "Liam", "last_name", "Byrne", "email", "liam.byrne@mail.example"))
    .profileId("vpr_4Tk9Bm2")
    .deliver("email")
    .reference("LOAN-55120")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityVerifications.CreateAsync(new IdentityVerificationsCreateOptions
{
    Person = new Dictionary<string, object> { ["reference"] = "CUST-88412", ["first_name"] = "Liam", ["last_name"] = "Byrne", ["email"] = "liam.byrne@mail.example" },
    ProfileId = "vpr_4Tk9Bm2",
    Deliver = "email",
    Reference = "LOAN-55120",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityVerifications->create([
    'person' => ['reference' => 'CUST-88412', 'first_name' => 'Liam', 'last_name' => 'Byrne', 'email' => 'liam.byrne@mail.example'],
    'profile_id' => 'vpr_4Tk9Bm2',
    'deliver' => 'email',
    'reference' => 'LOAN-55120',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.create(
  person: { reference: "CUST-88412", first_name: "Liam", last_name: "Byrne", email: "liam.byrne@mail.example" },
  profile_id: "vpr_4Tk9Bm2",
  deliver: "email",
  reference: "LOAN-55120"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_verifications()
    .create(kontiga::identity_verifications::CreateParams {
        person: serde_json::json!({"reference":"CUST-88412","first_name":"Liam","last_name":"Byrne","email":"liam.byrne@mail.example"}),
        profile_id: "vpr_4Tk9Bm2".into(),
        deliver: "email".into(),
        reference: "LOAN-55120".into(),
        ..Default::default()
    })
    .await?;
```

The answer is the verification, `not_started`, with its `link`: the `url` the person opens and `expires_at`, and `sent_on`, where the link went. `qr: true` adds `qr_png_base64`. For the widget or an SDK, mint a session token with `identity_verifications.session_token`. The person sees your brand kit, in `locale` or their own language. A live start that nothing covers answers `402 insufficient_credit`, with `details.reason`.

> **Retry safely.** Send an `Idempotency-Key` header with every start. A retry with the same key within 24 hours gets the first answer, and never starts or bills a second verification.

## Send the link

deliver

| Value | What happens |
| --- | --- |
| `email` | The link goes by email, in your brand kit. The default. |
| `sms` | The link goes by text message. |
| `link` | Nothing is sent: share `link.url` yourself, or show its QR code. |

In test mode a link goes only to your team members' own email addresses, and no text message is sent: to anyone else nothing goes out and `sent_on` is `null`. Open `link.url` yourself to play the person.

To send it again, on the same channel or another:

API:

```bash
curl -X POST https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8/resend \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "sms"
  }'
```

CLI:

```bash
kontiga identity-verifications resend idv_6Wn3Rk8 --channel sms
```

MCP tool `resend_identity_verification`:

```json
{
  "name": "resend_identity_verification",
  "arguments": {
    "verification_id": "idv_6Wn3Rk8",
    "channel": "sms"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityVerifications.resend("idv_6Wn3Rk8", {
  channel: "sms",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.resend("idv_6Wn3Rk8", channel="sms")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityVerifications.Resend(ctx, "idv_6Wn3Rk8", &kontiga.IdentityVerificationsResendParams{
	Channel: "sms",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityVerifications().resend("idv_6Wn3Rk8", IdentityVerificationsResendParams.builder()
    .channel("sms")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityVerifications.ResendAsync("idv_6Wn3Rk8", new IdentityVerificationsResendOptions
{
    Channel = "sms",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityVerifications->resend('idv_6Wn3Rk8', [
    'channel' => 'sms',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.resend("idv_6Wn3Rk8", channel: "sms")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_verifications()
    .resend("idv_6Wn3Rk8".into(), kontiga::identity_verifications::ResendParams {
        channel: "sms".into(),
        ..Default::default()
    })
    .await?;
```

A link works for the profile's `lifetime_hours`. `identity_verifications.extend` gives it more time.

## Follow it

Subscribe a webhook endpoint to Verify's events, each signed with `Kontiga-Signature`: `identity_verification.started` when the person begins, `identity_verification.queued_for_review` when a person must decide, and `identity_verification.completed` with the result. An event carries ids and statuses only; read the verification with your key for the rest. Every event: [Following a verification](https://kontiga.com/docs/identity-verifications#following-a-verification).

API:

```bash
curl -X GET https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8 \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga identity-verifications get idv_6Wn3Rk8
```

MCP tool `get_identity_verification`:

```json
{
  "name": "get_identity_verification",
  "arguments": {
    "verification_id": "idv_6Wn3Rk8"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityVerifications.get("idv_6Wn3Rk8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.get("idv_6Wn3Rk8")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityVerifications.Get(ctx, "idv_6Wn3Rk8")
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityVerifications().get("idv_6Wn3Rk8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityVerifications.GetAsync("idv_6Wn3Rk8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityVerifications->get('idv_6Wn3Rk8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.get("idv_6Wn3Rk8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_verifications()
    .get("idv_6Wn3Rk8".into())
    .await?;
```

## Read the result

- `result` is `passed`, `failed` or `needs_review`. `decided_by` says whether Kontiga's rules, a person or an expert decided, with the reason in words.
- Each of `steps` has its `status` and what was found, in plain words.
- `id_document` holds what was read from the ID. `selfie` holds the face match with its `similarity`, and liveness with its `liveness_score`, each from 0 to 100.
- The person is never told the result or a finding.

> **Decide on your server.** Never take a result from the person's browser or app. Act on `identity_verification.completed`, or on the verification read with your key.

## When a person must decide

A verification the rules are unsure about goes to `needs_review` and onto the review list. A member approves or rejects the step in review, or decides the whole verification. The profile's `decision.when_unsure` sets who: your team, experts (an add-on), or accept or reject. See [How a result is decided](https://kontiga.com/docs/settings-verify#how-a-result-is-decided).

API:

```bash
curl -X POST https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8/steps/liveness/review \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "decision": "approve",
    "reason": "live_person",
    "note": "The stills show him turning his head as asked."
  }'
```

CLI:

```bash
kontiga identity-verifications review-step idv_6Wn3Rk8 liveness \
  --decision approve \
  --reason live_person \
  --note 'The stills show him turning his head as asked.'
```

MCP tool `review_identity_verification_step`:

```json
{
  "name": "review_identity_verification_step",
  "arguments": {
    "verification_id": "idv_6Wn3Rk8",
    "step": "liveness",
    "decision": "approve",
    "reason": "live_person",
    "note": "The stills show him turning his head as asked."
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityVerifications.reviewStep("idv_6Wn3Rk8", "liveness", {
  decision: "approve",
  reason: "live_person",
  note: "The stills show him turning his head as asked.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.review_step(
    "idv_6Wn3Rk8",
    "liveness",
    decision="approve",
    reason="live_person",
    note="The stills show him turning his head as asked.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityVerifications.ReviewStep(ctx, "idv_6Wn3Rk8", "liveness", &kontiga.IdentityVerificationsReviewStepParams{
	Decision: "approve",
	Reason:   "live_person",
	Note:     "The stills show him turning his head as asked.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityVerifications().reviewStep("idv_6Wn3Rk8", "liveness", IdentityVerificationsReviewStepParams.builder()
    .decision("approve")
    .reason("live_person")
    .note("The stills show him turning his head as asked.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityVerifications.ReviewStepAsync("idv_6Wn3Rk8", "liveness", new IdentityVerificationsReviewStepOptions
{
    Decision = "approve",
    Reason = "live_person",
    Note = "The stills show him turning his head as asked.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityVerifications->reviewStep('idv_6Wn3Rk8', 'liveness', [
    'decision' => 'approve',
    'reason' => 'live_person',
    'note' => 'The stills show him turning his head as asked.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_verifications.review_step(
  "idv_6Wn3Rk8",
  "liveness",
  decision: "approve",
  reason: "live_person",
  note: "The stills show him turning his head as asked."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_verifications()
    .review_step("idv_6Wn3Rk8".into(), "liveness".into(), kontiga::identity_verifications::ReviewStepParams {
        decision: "approve".into(),
        reason: "live_person".into(),
        note: "The stills show him turning his head as asked.".into(),
        ..Default::default()
    })
    .await?;
```

## Ask again, or stop

- `identity_verifications.redo` asks for named steps again, with a reason the person reads. Never give a fraud finding as the reason.
- `identity_verifications.cancel` stops one not yet decided; its link stops working.
- `identity_verifications.report` gives the PDF report in your brand kit.

## What is billed

One identity verification, whatever its steps, counted the first time it reaches `passed`, `failed` or `needs_review`. Nothing is counted when it expires or is cancelled before a result, or when every step is reused. Each proof of address or of funds file is billed as Detect bills a file. Test mode never bills. See [Pricing](https://kontiga.com/docs/pricing).

## When it does not go through

Failures to plan for

| Answer | Means | Do |
| --- | --- | --- |
| `402 insufficient_credit` | A live start that nothing covers. | Add credit, or choose a plan. |
| `409 verification_closed` | It is decided, cancelled or expired. | Start a new one, or ask for a redo. |
| `identity_verification.expired` | The link ran out before the person finished. | Start a new one; nothing was charged. |
