# Document fraud detection API, webhooks and SDKs

> Document fraud detection API: send a document and get the verdict, both scores and every finding back as JSON, with signed webhooks and eight server SDKs.
>
> 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.
>
> AI can make a PDF just like a real company's system does, so nothing in the file alone gives a fake away; it shows next to the originals.

Updated December 1, 2026

Next step: [Try free](https://kontiga.com/sign-in?start=free) with 50 documents and no card, or [Book a demo](https://kontiga.com/book-a-demo). An agent signs up and connects from https://kontiga.com/agent-setup.md.

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

Kontiga's document fraud detection API catches edited, forged and AI-made documents in the files your code sends, and answers with a verdict, two scores and every finding as JSON. For teams whose code pays claims or approves loans: signed webhooks, eight server SDKs, a CLI, an MCP server, and a test key you get yourself, or your agent does, with no card and no sales call. Plans from $99 a month.

Trusted by One Call Insurance, PwC, Accenture, Adani Group, Amazon, Arch Insurance, Boeing, Chubb Limited, Deloitte, TotalEnergies, Red Bull, PepsiCo, Petronas, Siemens, Tesla, Unilever, World Health Organization, Wise, Abu Dhabi National Oil Company, Allstate, Ant Group and QBE Insurance Group.

## Document fraud in straight-through processing

Your systems decide on documents nobody opens: small claims paid straight through, loans approved and sellers onboarded by code. A total changed in a PDF goes from upload to payout without a person seeing it, and the first person who does is an auditor, months later.

## What does the document fraud detection API return?

This is the API of the largest document fraud detection solution, and the best for enterprise. Each document goes through more checks than any other solution runs, up to 148, and comes back as JSON: a verdict, two scores and each finding, with an event at every stage and retries that never check or bill twice.

- `type`: document.checked: the full result is in.
- `verdict`: One word for the whole document: trusted, review or high_risk.
- `risk_score`: How likely it was changed after it was issued, or made up, from 0 to 100.
- `fraud_score`: How likely it is fraud for its type of document, from 0 to 100.
- `findings`: Each one's kind and what was found, in plain words.

- The answer: A verdict, a risk score and a fraud score from 0 to 100, and each finding with where it is on the page. (`verdict`, `risk_score`, `fraud_score`, `findings`)
- The wait: Up to 10 seconds in the call: 201 with the result, or 202 with the stage it has reached. (`wait: 10`, `201 Created`, `202 Accepted`)
- Events: A signed webhook as each stage finishes, retried for 72 hours. (`document.received`, `document.checked_fast`, `document.checked`, `document.failed`, `case.decided`)
- Signature: Every webhook is signed in one header. Check it before you act on the event. (`Kontiga-Signature`)
- Retries: Send an idempotency key with every create. A repeat within 24 hours gets the first answer and never makes or bills a second document. (`Idempotency-Key`)
- SDKs: Eight server SDKs from one API description: TypeScript, Python, Go, Java, .NET, PHP, Ruby and Rust. (`checkFile`, `check_file`, `CheckFile`, `CheckFileAsync`)
- Agents and scripts: The MCP server and the CLI do what the API does, under the same key, and an agent signs up and gets its own key with no person involved. (`https://mcp.kontiga.com`, `kontiga documents check`, `POST /v1/signups`)
- Test mode: Test keys work on sample documents with prepared results, and never bill. The OpenAPI description is public. (`kt_test_`, `https://api.kontiga.com/openapi.json`)

## Document fraud detection API quickstart

Four steps, in the order you take them. Test keys work on sample documents and never bill.

1. Get a test key: From the developers page of the console, or by your agent with no person involved.
2. Send a document: With the CLI, one of eight server SDKs, a plain HTTP call or the MCP server. The answer comes at once, with the document's id and the stage it is at.
3. Read the answer: Pass wait, up to 10 seconds: 201 with the verdict, both scores and each finding, or 202 with the stage it has reached.
4. Hear every stage: A signed webhook as each stage finishes, document.checked once the full result is in. Retried for 72 hours, safe to receive twice.

## Can your code detect an AI-generated PDF?

Not from the file alone. Your code can read the PDF. It cannot see the original.

AI now makes a PDF the same way the issuing company's system does.

So a check that reads the file alone, one you write or one you ask a chatbot for, finds nothing wrong.

Next to the originals, it does not hold up. Every document you send through the API is compared with originals from Kontiga's library of more than 300 million, gathered over 20 years.

## What is a document fraud detection API?

It is how your own systems send documents to be checked and get the result back without anyone opening a screen. With Kontiga's API you send a document and get its id at once, or wait up to 10 seconds for the result. A signed webhook arrives at each stage, and the result holds the verdict, the risk score, the fraud score and each finding with where it is on the page.

The same result your code gets, as your team sees it in the console: doc_dskko9d7ar9b, High risk, the added salary credit marked on the page.

- Answers: Verdict, scores, findings as JSON
- Webhooks: Signed, one per stage
- SDKs: TypeScript, Python, Go, Java, .NET, PHP, Ruby, Rust
- Wait: Up to 10 seconds in the call
- Test mode: Sample documents, never billed
- Price: Plans from $99 a month, 50 documents free

## Identity verification API on the same key

The same key and the same SDKs check a person too: an ID document, a selfie with liveness, and AML screening, in the same case as their documents. Each result comes back as JSON and as a signed webhook, the way a document's does.

- ID documents, selfie and liveness
- AML screening for sanctions, PEPs and adverse media
- One case for the person and their documents

## How do you add document fraud detection to your app?

Call the API from your own code, script it with the CLI, or give your agent the MCP server. Or paste one line into your coding agent, and it wires all three into your project for you.

Give your agent this prompt: `Set up Kontiga for me: fetch https://kontiga.com/agent-setup.md and follow it.`

- The API and webhooks: Verdicts, scores and findings as JSON, and a signed webhook as each stage finishes.
- The CLI: kontiga documents check from a terminal or a pipeline, under the same key.
- The MCP server: A tool for each action, such as check_document, for any agent that speaks MCP.

## Check your own PDF through the API, free

Create a free account yourself, or let your agent do it, with no card and no sales call. Check 50 documents of your own with a live key, and build against test keys that never bill.

## More for developers

- [Integrations](https://kontiga.com/integrations): Connect the tools your team uses
- [Document fraud detection](https://kontiga.com/products/document-fraud-detection): A verdict and the proof on every document
- [Document verification](https://kontiga.com/products/document-verification): Checked and read in one pass
- [Security and data residency](https://kontiga.com/products/security-and-data-residency): Where data is held, who can open it

Guides for reviewers:

- [How to tell if a PDF has been edited](https://kontiga.com/guides/how-to-tell-if-a-pdf-has-been-edited)

## Document fraud detection pricing

Plans from $99 a month: Starter $99 a month with 250 documents, Growth $399 a month with 1,250 documents, Business $999 a month with 3,500 documents. Past them, $0.50 per document. Start free with 50 documents on your own files, once, with no card. Enterprise is by contract. Every price: https://kontiga.com/pricing.md.

## Document fraud detection API questions

### How do I get the result of a check?

Three ways: wait up to 10 seconds in the call itself, a signed webhook as each stage finishes, or a read of the document at any time. The verdict and both scores come only once every check has finished.

### Which SDKs are there?

Eight server SDKs: TypeScript, Python, Go, Java, .NET, PHP, Ruby and Rust, besides the CLI and the MCP server.

### Can I try the API without paying?

Yes. Test keys work on sample documents and never bill, and the free start checks 50 documents of your own with no card.

### Are retries safe?

Yes. Send an idempotency key with every create; a retry within 24 hours gets the first answer and never makes or bills a second document.

### Is this also a document verification API?

Yes. A document you send is checked and read in one pass: the result holds the verdict, both scores and the fields read from it, each with where on the page it was read. Document verification has its own page.

### Can we build this ourselves, or ask Claude or ChatGPT?

No. AI can now make a PDF just like the issuing company's system does, so the file looks right to your code, to any chatbot you ask and to any check you write. They see only the file. Telling a fake from a real one takes originals to compare with, and that is what Kontiga has: a proprietary library of more than 300 million original documents from companies around the world, gathered over 20 years.

### How does Kontiga catch AI-made and deepfake documents?

Every document you send through the API is compared with originals from Kontiga's library. A fake made with AI can look perfect on its own. Next to the originals, it does not.

## API and webhooks: more pages

- [Agents, MCP and CLI](https://kontiga.com/developers/agents): Document fraud detection MCP server, CLI and API for your own AI agents: they work cases with the same permissions as a member of your team.

## Start in the docs

- [Quickstart](https://kontiga.com/docs/quickstart) (Markdown: https://kontiga.com/docs/quickstart.md)
- [Keys and test mode](https://kontiga.com/docs/keys-and-test-mode) (Markdown: https://kontiga.com/docs/keys-and-test-mode.md)
- [Webhooks](https://kontiga.com/docs/webhooks) (Markdown: https://kontiga.com/docs/webhooks.md)
- [Events](https://kontiga.com/docs/events) (Markdown: https://kontiga.com/docs/events.md)
- [Realtime](https://kontiga.com/docs/realtime) (Markdown: https://kontiga.com/docs/realtime.md)

## For agents

What this page answers: Document fraud detection API: send a document and get the verdict, both scores and every finding back as JSON, with signed webhooks and eight server SDKs.

- Read this page as Markdown: https://kontiga.com/developers.md, or send `Accept: text/markdown` to https://kontiga.com/developers

### Start without a browser

- Sign up by API, no key: `curl -X POST https://api.kontiga.com/v1/signups -H "Content-Type: application/json" -d '{"email":"you@example.com","workspace_name":"Your company"}'`
- Then send the emailed code: `curl -X POST https://api.kontiga.com/v1/signups/{signup_id}/verify -H "Content-Type: application/json" -d '{"code":"<the code>"}'`
- Key variable: `KONTIGA_API_KEY`

### Check a document by machine

- API: `curl -X POST https://api.kontiga.com/v1/documents -H "Authorization: Bearer $KONTIGA_API_KEY" -H "Content-Type: application/json" -d '{"file_name":"payslip.pdf","content_type":"application/pdf","byte_size":184320,"upload_id":"upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60","wait":10}'`
- CLI: `kontiga documents check payslip.pdf --wait 10`
- MCP tool: `check_document {"file_name":"payslip.pdf","content_type":"application/pdf","byte_size":184320,"upload_id":"upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60","wait":10}`
- Docs: https://kontiga.com/docs/documents#check-a-document

### Connect

- [Agent setup](https://kontiga.com/agent-setup.md): One file an agent follows to sign up, connect and check a first document
- [MCP server](https://mcp.kontiga.com): Every action a key may take, as a tool under your key
- [Docs MCP server](https://kontiga.com/mcp): Search and read the docs, no key
- [OpenAPI](https://api.kontiga.com/openapi.json): Every API operation, described
- [llms.txt](https://kontiga.com/llms.txt): The map of this site and the docs
- [API](https://api.kontiga.com): Bearer key from KONTIGA_API_KEY

Page: https://kontiga.com/developers
Markdown: https://kontiga.com/developers.md
Language: en
