Document fraud detection API, webhooks and SDKs
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.
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("bank-statement-october-2026.pdf"),
wait: 10,
});from kontiga import Kontiga
kontiga = Kontiga() # reads KONTIGA_API_KEY
result = kontiga.documents.check(file=open("bank-statement-october-2026.pdf", "rb"), wait=10)client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Documents.Check(ctx, &kontiga.DocumentsCheckParams{
File: kontiga.FileFromPath("bank-statement-october-2026.pdf"),
Wait: 10,
})
if err != nil {
return err
}# upload_id comes from POST /v1/uploads, which takes the filecurl -X POST https://api.kontiga.com/v1/documents \ -H "Authorization: Bearer $KONTIGA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "file_name": "bank-statement-october-2026.pdf", "content_type": "application/pdf", "byte_size": 248113, "upload_id": "upl_4f1c9a2e7b3d4c5a8e6f0b1d2c3a4e5f", "wait": 10 }'Answer: 201 Created
{
"id": "doc_dskko9d7ar9b",
"type": "bank_statement",
"verdict": "high_risk",
"risk_score": 93,
"fraud_score": 59,
"findings": [{
"kind": "fraud",
"title": "A salary credit was added after the statement was issued",
"where": "Page 1, line 14"
}]
}Trusted by
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.
POST to your endpoint, signed in Kontiga-Signature
{
"id": "evt_6Hq2Rm8",
"type": "document.checked",
"created_at": "2026-11-24T19:16:41Z",
"workspace": "ws_4Hn8Jd2",
"mode": "live",
"data": {
"object": {
"id": "doc_dskko9d7ar9b",
"object": "document",
"stage": "done",
"verdict": "high_risk",
"risk_score": 93,
"fraud_score": 59,
"findings": [
{
"kind": "fraud",
"title": "A salary credit was added after the statement was issued"
},
{
"kind": "information",
"title": "The address differs from the address on file"
}
]
}
}
}- 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.
verdictrisk_scorefraud_scorefindings - The wait
- Up to 10 seconds in the call: 201 with the result, or 202 with the stage it has reached.
wait: 10201 Created202 Accepted - Events
- A signed webhook as each stage finishes, retried for 72 hours.
document.receiveddocument.checked_fastdocument.checkeddocument.failedcase.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.
checkFilecheck_fileCheckFileCheckFileAsync - 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.comkontiga documents checkPOST /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.
Get a test key
From the developers page of the console, or by your agent with no person involved.
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.
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.
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.
- 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


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.
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.
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.
Your coding agent
Paste one line, and it connects Kontiga's API, CLI and MCP server to your project. Copy the line

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.
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.
Sign in, then check a PDF of your own
$ kontiga auth login$ kontiga documents check your-statement.pdf --wait 10More for developers
Start in the docs
The technical detail, for your developers and your agents.
Guides for reviewers



