# Verify inside your app

> 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-sdk

Run the verification natively in your iOS, Android, React Native or Flutter app: your server starts it and hands the app a session token, and the result reaches your server, never the app.

Updated November 30, 2026

## How it works

1. Your server starts the verification with `deliver: "link"` and gets a session token for it.
2. Your app starts the Kontiga SDK with the token: one call on iOS, on Android, and through the React Native and Flutter SDKs.
3. The person goes through the steps the profile asks for, natively and in your brand kit, the passport's chip included when the profile reads it.
4. The SDK tells your app the outcome. Your server receives the result.

API:

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

CLI:

```bash
kontiga identity-verifications session-token idv_6Wn3Rk8
```

MCP tool `create_identity_verification_session_token`:

```json
{
  "name": "create_identity_verification_session_token",
  "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.sessionToken("idv_6Wn3Rk8");
```

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Hand the token to your app only, and never log it. It belongs to the first device that uses it and works for 30 minutes, renewed while in use. The app keeps it while the verification is open, so a closed app comes back at the same step.

## What the SDK tells your app

Outcomes

| Outcome | Means | Do |
| --- | --- | --- |
| `submitted` | Nothing more waits for the person. | Show that it is done; wait for your server. |
| `cancelled` | The person stopped. | Offer to start again later. |
| `failed`, `session_expired` | The token ran out or was revoked. | Get a new token for the same verification; the SDK resumes at the same step. |
| `failed`, `permission_denied` | The camera, or NFC for the chip, was refused. | The SDK has explained and offered the settings. |
| `failed`, `client_outdated` | This SDK version cannot show a screen the verification needs. | Update the SDK. |

> **Decide on your server.** The SDK never returns the result. Act on `identity_verification.completed`, or read the verification with your secret key.

## What your app declares

Platform settings

| Platform | For | Declare |
| --- | --- | --- |
| iOS | The camera | `NSCameraUsageDescription`. |
| iOS | The chip | The NFC tag reading capability, the travel document application identifier `A0000002471001` under `com.apple.developer.nfc.readersession.iso7816.select-identifiers`, and `NFCReaderUsageDescription`. |
| Android | The camera and the chip | `android.permission.CAMERA` and `android.permission.NFC`. |

## With no app of your own

When a profile reads the chip and the person verifies in a browser, the portal offers Kontiga's own app for the chip, and the person comes back to the browser. Someone who cannot use it verifies with the ID's pictures and a selfie.

The calls the SDKs make, with their limits and errors: [The verification client API](https://kontiga.com/docs/guides/verify-client-api).
