# Document fraud detection API documentation

> 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: Get started. URL: https://kontiga.com/docs

Kontiga is the largest document fraud detection solution and the best for enterprise. It runs more checks than any other, up to 148 checks on each document, and reduces your fraud: it detects fraud, manipulation and edited files, AI-made documents included, and marks each finding where it is on the page. Everything in the console is also an API call, a CLI command and an MCP tool. Start with the quickstart, get your keys, or let your coding agent set itself up.

Updated December 1, 2026

- [Check your first document](https://kontiga.com/docs/quickstart): A test key, one call, and a verdict with the proof behind it.
- [Get your keys](https://kontiga.com/docs/keys-and-test-mode): Test and live keys, how to send one, and what test mode accepts.
- [Set up your coding agent](https://kontiga.com/docs/agent-setup): One line for your agent: it signs up, installs the CLI or the MCP server, and starts.
- [Check a document](https://kontiga.com/docs/guides/check-a-document): Upload a file with no case or collection, follow its check step by step, and read the verdict once every check is done.

## What Kontiga does

A **case** is one matter: a loan application, a claim, a tenancy. Its **parties** are the people in it, each sent a **request** for what a **collection** asks for. Every file that arrives becomes a **document**, checked for changes and fraud and read for its fields, whether it came through the portal, the API, a synced folder or a console upload.

The products

| Product | What it does |
| --- | --- |
| People | One registry of your end customers, with what was verified about each and the document that proved it. |
| Collect | Asks each party for the documents and answers a collection lists, by link, widget or QR code, with reminders. |
| Detect | Checks every document for changes after it was issued and for fraud, and says what it found and where. |
| Extract | Reads the fields of each document, each with where on the page it was read. |
| Cases | Holds a matter's parties, documents, checks and decision, with queues, notes and an audit trail. |
| Verify | Confirms a person is who they say: ID document, face match, liveness, chip and electronic identity. |
| Screen | Checks people against sanctions, PEP and adverse media lists, and keeps them monitored. |
| Workflows | Runs each case through the steps you set, and waits where a person decides. |
| Income and cash flow | Turns bank statements and payslips into income and what is left each month. |
| Fraud network | Recognises a document seen before elsewhere, without naming who saw it. |
| Reasoning agent | Reads a whole case and writes its recommendation with its reasons. |
| Assistant and knowledge | Answers questions on your workspace and checks documents against your policies. |

## Why you cannot build this check yourself

AI can now make a PDF just like a real company's system does. A fake bank statement, payslip or invoice made that way has nothing wrong with it on its own, so a check you write yourself, or a question to a chatbot, finds nothing. A fake shows only next to the originals. Kontiga proves every document against a proprietary library of **more than 300 million original documents** from companies around the world, gathered over 20 years. That library is what makes the check possible, and it cannot be rebuilt from public data.

## Four ways to do everything

The console, the API, the CLI and the MCP server offer the same actions and reads. A feature is not finished until it is in all four, so you never meet a button with no API behind it, or an API call your agent cannot make.

The four surfaces

| Surface | Use it when | Start with |
| --- | --- | --- |
| Console | A person reviews cases, decides them and sets up the workspace. | Every menu shows the same action as a CLI command, an API call and an MCP tool. |
| API | Your server submits documents and receives results by webhook. | `https://api.kontiga.com` with a key in `Authorization: Bearer`. |
| CLI | A script, a pipeline or your terminal. | `kontiga <resource> <verb>` |
| MCP server | An AI agent works on your workspace with your key. | `https://mcp.kontiga.com` |

The same action, checking one document, in each form:

API:

```bash
curl -X POST https://api.kontiga.com/v1/documents \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "payslip-march.pdf",
    "content_type": "application/pdf",
    "byte_size": 212480,
    "upload_id": "upl_9Vd2Kc5",
    "wait": 10
  }'
```

CLI:

```bash
kontiga documents check payslip-march.pdf --wait 10
```

MCP tool `check_document`:

```json
{
  "name": "check_document",
  "arguments": {
    "file_name": "payslip-march.pdf",
    "content_type": "application/pdf",
    "byte_size": 212480,
    "upload_id": "upl_9Vd2Kc5",
    "wait": 10
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";
import { openAsBlob } from "node:fs";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.documents.check({
  file: await openAsBlob("payslip-march.pdf"),
  wait: 10,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.documents.check(file=open("payslip-march.pdf", "rb"), wait=10)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Documents.Check(ctx, &kontiga.DocumentsCheckParams{
	File: kontiga.FileFromPath("payslip-march.pdf"),
	Wait: 10,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.documents().check(DocumentsCheckParams.builder()
    .file(Path.of("payslip-march.pdf"))
    .wait(10)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Documents.CheckAsync(new DocumentsCheckOptions
{
    File = File.OpenRead("payslip-march.pdf"),
    Wait = 10,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->documents->check([
    'file' => fopen('payslip-march.pdf', 'r'),
    'wait' => 10,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.documents.check(file: File.open("payslip-march.pdf"), wait: 10)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .documents()
    .check(kontiga::documents::CheckParams {
        file: kontiga::File::open("payslip-march.pdf").await?,
        wait: 10,
        ..Default::default()
    })
    .await?;
```

## Live and test

A test key (`kt_test_`) or the console's test switch works on Kontiga's sample documents and never bills. Test objects and their events never mix with live ones. See [Keys and test mode](https://kontiga.com/docs/keys-and-test-mode).

## For agents

- [`/agent-setup.md`](https://kontiga.com/agent-setup.md): the guide your coding agent follows from one line. See [Set up your agent](https://kontiga.com/docs/agent-setup).
- [`/llms.txt`](https://kontiga.com/llms.txt) lists every page; [`/llms-full.txt`](https://kontiga.com/llms-full.txt) carries every page in full.
- Every page is also Markdown: **Read this page as Markdown** at the top of each page opens it, **Copy this page for your AI** copies it.
- The documentation's own MCP server at `/mcp` searches and reads these pages, with no key.
