Skip to content

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,
});

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"
  }]
}
Checking a bank statement with Kontiga's API, in TypeScript, Python, Go and curl, waiting up to 10 seconds; the answer is JSON with the verdict high_risk, the risk score 93, the fraud score 59, and the finding that a salary credit was added after the statement was issued, on 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.

Documents an insurer's claims system sent to Kontiga through the API, highest risk first: claim forms and invoices marked High risk that no person had opened.

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 document.checked webhook your server receives when the full result is in: the event, and the document with its verdict high_risk, risk score 93, fraud score 59, a fraud finding and an information finding.
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.

  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.

The developers page of the Kontiga console: API keys, webhooks, a live stream, agent prompts, the upload widget and the API logs, and the quick start's first step, getting a test key.

Can your code detect an AI-generated PDF?

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

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

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

  3. 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.

A fintech team at work, with a bank statement in the Kontiga console laid over it: High risk, the added salary credit marked on the page.
A bank statement in the Kontiga console on a phone, marked High risk with risk score 93 and fraud score 59, the added salary credit marked on the page.

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
Every document Kontiga checks

Updated

The bank statement doc_dskko9d7ar9b in the Kontiga console: High risk, risk score 93 and fraud score 59, the added salary credit marked on line 14, and the two findings beside it.

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
A specimen French identity card beside a live selfie on a phone, during an identity check.

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

Webhook deliveries in the Kontiga console: case.decided, document.checked_fast, document.checked and request.completed, each delivered to the insurer's endpoint with a 200.

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 10
Signing in to the Kontiga CLI and checking a PDF of your own.

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.

Updated .

my-app · Claude Code

Set up Kontiga for me: fetch https://kontiga.com/agent-setup.md and follow it.

Paste into any coding agent

Works withClaude CodeCodexGemini CLIGrok Build

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

This page by API, CLI and MCP

Check a document by 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}'
Check a document with the CLI
kontiga documents check payslip.pdf --wait 10
Check a document with the MCP tool
check_document {"file_name":"payslip.pdf","content_type":"application/pdf","byte_size":184320,"upload_id":"upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60","wait":10}

Connect