The document object
idThe document’s id, starting with
doc_.modeliveortest.case_idThe case it is on, or
nullfor a document checked on its own.person_idThe person it belongs to, or
null.typeThe document type, such as
paysliporbank_statement.sourceHow it arrived:
portal,api,uploadordropbox.statereceived,checking,checked_fast(the first result is in, the full checks still run),checkedorfailed.stageThe same in words:
received,reading,checking,doneorfailed.failure_reasonWhy a
faileddocument failed, when it is known:not_analysedwhen the document could not be analysed. It is not charged; check it again later. Absent otherwise.checkWhile its checks run:
stage(queued,reading,checkingordeciding),percent(how far, in tens) andstarted_at.nullonce its checks end.risk_score0 to 100: how likely the document was altered after it was made, or was generated.
nulluntil every check has finished.fraud_score0 to 100: how likely the document is fraud, for its type.
nulluntil every check has finished, and for a type it does not assess.fraud_score_reasonWhy a checked document has no fraud score:
unknown_type,test,rejectedorunavailable.nullwhen it has one.verdictFrom the higher of the two scores, at the workspace’s cut points:
trusted,revieworhigh_risk.nulluntil every check has finished. A document the checks could not finish on readsreview.verdict_reasonWhy the verdict is
reviewwhen the scores do not say it: the checks could not finish on the document, in plain words.nullotherwise.findingsWhat was found, each with its
tag_id, its kind (fraud,informationorpositive), a sentence, the page and the area, and whether a member reviewed it. While the full checks still run, the first checks' findings are listed withprovisional: true; they are never counted.details_lockedOn the free start, a checked document of the workspace’s own shows its verdict, its scores and
countsof findings by kind; which findings, the fields and the amount show once the workspace chooses a plan. Absent when everything shows: on a plan, for a sample and in test mode.sampleWhich of Kontiga’s sample documents it is; absent for your own file.
referenceYour own id for it, or
null.checked_atWhen every check finished, or
null.issuerWho issued it, as read from the document: the employer, the bank, the landlord.
""when it was not read.amountThe document’s total as read from it:
label,valueandcurrency(ISO 4217).nullwhen none was read.fieldsThe data read from it, each with its name, value and confidence from 0 to 1.
policy_findingsWhere it falls short of a policy linked to its case or requirement, with the passage quoted.
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"mode": "live",
"case_id": "case_7Kq2Xw9",
"person_id": "per_2Nc6Qs8",
"type": "payslip",
"type_label": "Payslip",
"title": "Payslip, October 2026",
"file_name": "payslip-oct-2026.pdf",
"issuer": "Dunmore Freight Ltd",
"category": "income",
"source": "portal",
"pages": 1,
"received_at": "2026-11-24T09:31:20Z",
"state": "checked",
"stage": "done",
"check": null,
"risk_score": 46,
"fraud_score": 31,
"fraud_score_reason": null,
"verdict": "review",
"verdict_reason": null,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"where": "Page 1, the marked area",
"page": 1,
"detail": "The net pay reads 3,412.50. The payslip was issued with 2,912.50.",
"box": { "x": 0.62, "y": 0.71, "w": 0.24, "h": 0.04 },
"reviewed": false
},
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e00a4",
"kind": "positive",
"title": "Matches genuine payslips from this employer",
"where": "The whole document",
"page": 1,
"detail": "It matches genuine payslips from Dunmore Freight Ltd.",
"box": { "x": 0, "y": 0, "w": 1, "h": 1 },
"reviewed": false
}
],
"fields": [
{ "name": "employee_name", "value": "Marta Kowalczyk", "confidence": 0.99 },
{ "name": "employer_name", "value": "Dunmore Freight Ltd", "confidence": 0.98 },
{ "name": "pay_date", "value": "2026-10-31", "confidence": 0.97 },
{ "name": "net_pay", "value": "3412.50", "confidence": 0.95 }
],
"amount": { "label": "Net pay", "value": 3412.5, "currency": "EUR" },
"policy_findings": [],
"reference": "APP-20418-PAY-10",
"checked_at": "2026-11-24T09:31:58Z"
}POST/v1/documents
Upload one document and get its verdict, findings and both scores, with no case or collection needed; optionally with your reference, the person it is for, the case it goes on and what you know about it.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents check <file> [--wait <seconds>] [--reference <text>] [--person-id <person_id>] [--case-id <case_id>] [--metadata <json>]- MCP tool
check_document- Returns
- The document, received; its result arrives in stages (received, reading, checking, done) by event and on each read.
Parameters
file_nameRequiredThe file’s name. The CLI reads it, its type and its size from the file you give. At most 255 characters.
content_typeRequiredThe file’s type: a PDF or a photo. One of
application/pdf,image/jpeg,image/jpg,image/png,image/heic,image/heif,image/tiff,image/webp.byte_sizeRequiredThe file’s size in bytes. A file is at most 64 MB.
upload_idThe upload that holds the file, from
POST /v1/uploads, of this workspace and mode, used once and within its hour. Send the file exactly as it arrived, never resized or saved again.waitSeconds to wait for the first result, 0 to 10. When the first checks are done (their findings marked provisional) or the check ends in time, the answer is
201with the document; otherwise202with the document as it stands. Running out of time is not an error.referenceYour own id for the document, up to 64 characters.
person_idThe person’s id.
case_idThe case’s id.
metadataWhat you know about it, by group:
document,identity,transaction,device,emailandclaim, each a flat object of lower-case keys to strings, numbers, booleans ornull.
curl -X POST https://api.kontiga.com/v1/documents \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_name": "statement-oct-2026.pdf",
"content_type": "application/pdf",
"byte_size": 248113,
"upload_id": "upl_4f1c9a2e7b3d4c5a8e6f0b1d2c3a4e5f",
"wait": 10
}'POST /v1/documents
{
"id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"object": "document",
"mode": "live",
"case_id": null,
"person_id": null,
"type": "unknown",
"type_label": "Document",
"title": "statement-oct-2026.pdf",
"file_name": "statement-oct-2026.pdf",
"issuer": "",
"category": "company",
"source": "api",
"pages": null,
"received_at": "2026-11-27T10:02:44Z",
"state": "received",
"stage": "received",
"check": { "stage": "queued", "percent": 0, "started_at": "2026-11-27T10:02:44Z" },
"risk_score": null,
"fraud_score": null,
"fraud_score_reason": null,
"verdict": null,
"verdict_reason": null,
"findings": [],
"fields": [],
"amount": null,
"policy_findings": [],
"reference": null,
"checked_at": null
}When a check is refused
GET/v1/documents
Every document of the workspace, however it arrived, on a case or not.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents list [--case-id <case_id>] [--person-id <person_id>] [--state <received|checking|checked_fast|checked|failed>] [--verdict <trusted|review|high_risk>] [--standalone] [--q <text>] [--limit <n>] [--cursor <cursor>]- MCP tool
list_documents- Returns
- The documents, newest first, each with its stage, verdict and scores.
Parameters
case_idOnly the documents on this case.
person_idOnly this person’s documents.
stateOnly documents in this state. One of
received,checking,checked_fast,checked,failed.verdictOnly documents with this verdict. One of
trusted,review,high_risk.standalonetruefor documents checked on their own, with no case.qWords in the file name or the document type. At most 200 characters.
limitHow many to answer, 1 to 200. The answer’s
next_cursorreads the next page.cursorThe
next_cursorof the page before: the documents after it, newest first. Left out, the first page. At most 512 characters.
curl -X GET "https://api.kontiga.com/v1/documents?case_id=case_7Kq2Xw9&limit=50" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents
{
"object": "list",
"items": [
{
"id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"object": "document",
"title": "statement-oct-2026.pdf",
"state": "checking",
"stage": "checking",
"check": { "stage": "checking", "percent": 60, "started_at": "2026-11-27T10:02:44Z" },
"verdict": null,
"risk_score": null,
"fraud_score": null
},
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"title": "Payslip, October 2026",
"state": "checked",
"stage": "done",
"check": null,
"verdict": "review",
"risk_score": 46,
"fraud_score": 31
}
],
"next_cursor": "AZP2osXie3s9TR9qe4ycDg",
"has_more": true
}GET/v1/documents/facts
What the documents list shows beside each document: whether a member has opened it yet, until when its files are kept, who signed it, and how far its checks are while they run.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents facts [--document-ids <document_id>,...]- MCP tool
list_document_facts- Returns
- For each document: when it was first opened, until when its files are kept, who signed it, and its check’s progress while it runs.
Parameters
document_idsThe documents to read, up to 500. Left out, the newest 500 of the list. Each answers
opened_at,files_until(when its files are deleted under the workspace’s retention),signed_byand, while its checks run,check.
curl -X GET "https://api.kontiga.com/v1/documents/facts?document_ids=doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e%2Cdoc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/facts
{
"object": "document_facts",
"documents": [
{
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"opened_at": "2026-11-24T10:02:18Z",
"files_until": "2027-02-22T09:31:20Z",
"signed_by": null,
"check": null
},
{
"document_id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"opened_at": null,
"files_until": "2027-02-25T10:02:44Z",
"signed_by": "Kilbride Savings Bank",
"check": {
"stage": "checking",
"percent": 60,
"as_of": "2026-11-27T10:02:58Z",
"expected_done_at": "2026-11-27T10:03:30Z"
}
}
]
}GET/v1/documents/{document_id}
One document: its verdict, both scores, every finding with what was found and where, the fields read from it and its policy findings.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents get <document_id>- MCP tool
get_document- Returns
- The document with its result at its current stage.
Parameters
document_idRequiredThe document to read. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"mode": "live",
"case_id": "case_7Kq2Xw9",
"person_id": "per_2Nc6Qs8",
"type": "payslip",
"type_label": "Payslip",
"title": "Payslip, October 2026",
"file_name": "payslip-oct-2026.pdf",
"issuer": "Dunmore Freight Ltd",
"category": "income",
"source": "portal",
"pages": 1,
"received_at": "2026-11-24T09:31:20Z",
"state": "checked",
"stage": "done",
"check": null,
"risk_score": 46,
"fraud_score": 31,
"fraud_score_reason": null,
"verdict": "review",
"verdict_reason": null,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"where": "Page 1, the marked area",
"page": 1,
"detail": "The net pay reads 3,412.50. The payslip was issued with 2,912.50.",
"box": { "x": 0.62, "y": 0.71, "w": 0.24, "h": 0.04 },
"reviewed": false
},
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e00a4",
"kind": "positive",
"title": "Matches genuine payslips from this employer",
"where": "The whole document",
"page": 1,
"detail": "It matches genuine payslips from Dunmore Freight Ltd.",
"box": { "x": 0, "y": 0, "w": 1, "h": 1 },
"reviewed": false
}
],
"fields": [
{ "name": "employee_name", "value": "Marta Kowalczyk", "confidence": 0.99 },
{ "name": "employer_name", "value": "Dunmore Freight Ltd", "confidence": 0.98 },
{ "name": "pay_date", "value": "2026-10-31", "confidence": 0.97 },
{ "name": "net_pay", "value": "3412.50", "confidence": 0.95 }
],
"amount": { "label": "Net pay", "value": 3412.5, "currency": "EUR" },
"policy_findings": [],
"reference": "APP-20418-PAY-10",
"checked_at": "2026-11-24T09:31:58Z"
}POST/v1/documents/{document_id}/opened
Record that a member opened a document, so the list stops marking it new. The document page does it when it opens; the first time is kept.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents mark-opened <document_id>- MCP tool
mark_document_opened- Returns
- When the document was first opened.
Parameters
document_idRequiredThe document a member opened. The first time is kept; a later call answers it unchanged. In the path.
curl -X POST https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/opened \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/documents/{document_id}/opened
{
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"opened_at": "2026-11-24T10:02:18Z"
}GET/v1/documents/{document_id}/checks
How many checks a document was run through, how many passed, and how many found something, by kind (fraud, information, positive), with the findings they gave.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents checks <document_id>- MCP tool
list_document_checks- Returns
- The total of checks, how many passed and how many found something, by kind, and the ids of the findings they gave; each null until every check has finished, with the stage it is at in stage.
Parameters
document_idRequiredThe document whose checks to count. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/checks \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/checks
{
"object": "document_checks",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"state": "done",
"total": 148,
"passed": 146,
"found": { "fraud": 1, "information": 0, "positive": 1 },
"policy_findings": 0,
"stage": null,
"finding_ids": {
"fraud": ["tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051"],
"information": [],
"positive": ["tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e00a4"]
}
}GET/v1/documents/{document_id}/evidence
Each finding on a document with where it is on the page, and the document’s verdict and scores.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents evidence <document_id>- MCP tool
get_document_evidence- Returns
- Each finding with where it is on the page, and the document’s verdict and scores.
Parameters
document_idRequiredThe document whose evidence to read. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/evidence \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/evidence
{
"object": "document_evidence",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"verdict": "review",
"risk_score": 46,
"fraud_score": 31,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"where": "Page 1, the net pay box",
"page": 1,
"box": { "x": 0.62, "y": 0.71, "w": 0.24, "h": 0.04 }
}
]
}GET/v1/documents/{document_id}/details
What a document states about itself: your reference, the country, who sent it, and the file’s name, type, pages and fingerprint (SHA-256).
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents details <document_id>- MCP tool
get_document_details- Returns
- The document’s reference, country, workspace and sender, and its file’s name, type, pages and fingerprint.
Parameters
document_idRequiredThe document whose details to read. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/details \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/details
{
"object": "document_details",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"reference": "APP-20418-PAY-10",
"compatible_id": { "submission_id": "document_1Kq8Vd3Xr5Tn2Bw7Ys9Hc4", "request_id": "M2URN5KEF" },
"country": { "code": "IE", "name": "Ireland" },
"workspace": { "id": "ws_0193c1a2b3c44d5e8f60718293a4b5c6", "name": "Harbourline Lending", "region": "eu-west-1" },
"received_from": { "kind": "person", "name": "Marta Kowalczyk" },
"file": {
"name": "payslip-oct-2026.pdf",
"content_type": "application/pdf",
"pages": 1,
"sha256": "9f2c4e7a1b3d58c06e2f9a4b7d1c3e5f80a2b4c6d8e0f1a3b5c7d9e1f2a4b6c8"
},
"metadata": {
"transaction": { "loan_amount": 285000, "currency": "EUR" }
}
}GET/v1/documents/{document_id}/history
Who sent a document and for which party, the checklist item it answers, each time it was asked for again and why, its expert reviews, the later file that replaced it, why its checks could not finish and each time it was checked again, and what later checks found.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents history <document_id>- MCP tool
get_document_history- Returns
- The sender, the party and item, the times it was asked again, and the expert reviews.
Parameters
document_idRequiredThe document whose history to read. Each time it was checked again reads
runningwhile that check waits or runs, thenfinishedwith the verdict orstopped;failure.can_retryisfalsemeanwhile. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/history \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/history
{
"object": "document_history",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"sent_by": { "type": "end_customer", "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk" },
"party": { "id": "pty_9Hd4Vb1", "person_id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "role": "applicant" },
"case": { "id": "case_7Kq2Xw9", "reference": "APP-20418" },
"item": { "request_id": "rqs_4Gt7Uy2", "item_id": "itm_2Xc9Lb6", "state": "received" },
"asked_again": [],
"expert_reviews": [
{
"id": "exr_7Fp3Qa1",
"state": "in_progress",
"asked_by": "Ines Moreau",
"question": "Is the net pay on this payslip the one the employer issued?",
"requested_at": "2026-11-25T11:40:12Z",
"finding": null
}
],
"replaced_by": null,
"failure": null,
"checked_again": [],
"monitoring": [],
"type_corrections": [
{ "type": "payslip", "type_label": "Payslip", "by": "Ines Moreau", "at": "2026-11-24T10:05:31Z" }
]
}POST/v1/documents/{document_id}/check_again
Run the checks again on a document whose checks stopped before they finished. The failure stays in its history, with each try; nothing is charged twice. A document whose checks finished is refused.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents check-again <document_id> [--wait <seconds>]- MCP tool
check_document_again- Returns
- How the checks went this time: running while they run past the wait, finished with a verdict, or stopped again, and how many times they have been tried.
Parameters
document_idRequiredA document whose checks stopped before they finished: its
stageisfailed. A document whose checks finished, or are running, is refused with409. In the path.waitSeconds to wait for the checks to end, 0 to 10, as when you check a document. When they end in time the answer is
200withfinishedand the verdict, orstopped; otherwise202withrunning, and the document shows the result once it is in. Nothing is charged again.
curl -X POST https://api.kontiga.com/v1/documents/doc_0193f6c3d4e5f6071829304a5b6c7d8e/check_again \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/documents/{document_id}/check_again
{
"object": "document_check_again",
"document_id": "doc_0193f6c3d4e5f6071829304a5b6c7d8e",
"result": "finished",
"tries": 2,
"verdict": "trusted",
"checked_at": "2026-11-27T10:41:09Z"
}POST/v1/documents/{document_id}/findings/{finding_id}/review
Mark a finding on a document as looked at, or not; the finding itself does not change.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents review-finding <document_id> <finding_id> [--reviewed=false]- MCP tool
mark_finding_reviewed- Returns
- The document with the finding marked.
Parameters
document_idRequiredThe document the finding is on. In the path.
finding_idRequiredThe finding: a
tag_id, or a policy finding’spfn_id. In the path.reviewedfalsetakes the mark off again.
curl -X POST https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/findings/tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051/review \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/documents/{document_id}/findings/{finding_id}/review
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"verdict": "review",
"risk_score": 46,
"fraud_score": 31,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"reviewed": true
}
]
}POST/v1/cases/{case_id}/documents
Put a document checked on its own, or uploaded, on a case.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga cases add-document <case_id> --document-id <document_id>- MCP tool
add_document_to_case- Returns
- The document, on the case.
Parameters
document_idRequiredA document with no case yet. It takes the case’s first party as its person when it has none.
case_idRequiredThe case to put it on. In the path.
curl -X POST https://api.kontiga.com/v1/cases/case_7Kq2Xw9/documents \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document_id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a"
}'POST /v1/cases/{case_id}/documents
{
"id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"object": "document",
"mode": "live",
"case_id": "case_7Kq2Xw9",
"person_id": "per_2Nc6Qs8",
"title": "Bank statement, October 2026",
"stage": "done",
"verdict": "trusted"
}PATCH/v1/documents/{document_id}
Set your own reference on a document, the person it belongs to, and what you know about it, by group (the document, the identity, the transaction, the device, the email, the claim), as Bynn’s characteristics on submission. A group you send replaces that group; null removes it.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents update <document_id> [--reference <text>] [--person-id <person_id>] [--metadata <json>]- MCP tool
update_document- Returns
- The document’s details, with the reference and the metadata as they are now.
Parameters
document_idRequiredThe document to change. In the path.
referenceYour own id for the document, up to 64 characters.
nullclears it.person_idWhose document it is. A document is given to a person by adding it to their case (
POST /v1/cases/{case_id}/documents), so here onlynullis taken; a person’s id is refused with where to do it.nullclears it.metadataWhat you know about it, by group:
document,identity,transaction,device,emailandclaim. Each group is a flat object of lower-case keys to strings, numbers, booleans ornull. A group you send replaces that group, a group sent asnullis removed, and groups you leave out stay.
curl -X PATCH https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reference": "APP-20418-PAY-10",
"metadata": {
"transaction": {
"loan_amount": 285000,
"currency": "EUR"
}
}
}'PATCH /v1/documents/{document_id}
{
"object": "document_details",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"reference": "APP-20418-PAY-10",
"compatible_id": { "submission_id": "document_1Kq8Vd3Xr5Tn2Bw7Ys9Hc4", "request_id": "M2URN5KEF" },
"country": { "code": "IE", "name": "Ireland" },
"workspace": { "id": "ws_0193c1a2b3c44d5e8f60718293a4b5c6", "name": "Harbourline Lending", "region": "eu-west-1" },
"received_from": { "kind": "person", "name": "Marta Kowalczyk" },
"file": {
"name": "payslip-oct-2026.pdf",
"content_type": "application/pdf",
"pages": 1,
"sha256": "9f2c4e7a1b3d58c06e2f9a4b7d1c3e5f80a2b4c6d8e0f1a3b5c7d9e1f2a4b6c8"
},
"metadata": {
"transaction": { "loan_amount": 285000, "currency": "EUR" }
}
}GET/v1/documents/{document_id}/file
The file exactly as it was received: the customer’s own bytes, as the end customer sent them.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents download <document_id> [--output <path>]- MCP tool
download_document- Returns
- The original file, with its own content type (PDF, JPEG, PNG or HEIC).
Parameters
document_idRequiredThe document whose file to download. The answer is the file itself, exactly as it was received, with its own content type. Send
Accept: application/jsonfor a link to it instead, which lives 5 minutes. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/file \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/file
{
"url": "https://files.kontiga.com/ws_0193c1a2b3c44d5e8f60718293a4b5c6/payslip-oct-2026.pdf?X-Amz-Expires=300&X-Amz-Signature=8c1f0e",
"file_name": "payslip-oct-2026.pdf",
"content_type": "application/pdf",
"expires_at": "2026-11-27T10:46:09Z"
}GET/v1/documents/{document_id}/report
The document’s report as a PDF: the verdict, both scores, the total of checks with how many passed and how many found something, every finding by kind with what was found and where, the file’s details, and the fields read.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents report <document_id> [--output <path>]- MCP tool
get_document_report- Returns
- The document report, a PDF.
Parameters
document_idRequiredThe document whose report to download. The answer is a PDF stating the verdict, both scores, the total of checks with how many passed and found something (the same total as Read a document’s checks), each finding, the known outcome and the type’s correction, the file’s details and the fields read. It is made again whenever one of these changes. Send
Accept: application/jsonfor a link to it instead, which lives 5 minutes. A document still being checked answers409; on the free start the report shows once a plan starts (403 plan_required). In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/report \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/report
{
"url": "https://files.kontiga.com/ws_0193c1a2b3c44d5e8f60718293a4b5c6/report-5f2a9c1e7b3d4a60.pdf?X-Amz-Expires=300&X-Amz-Signature=41d7a2",
"file_name": "payslip-oct-2026 report.pdf",
"content_type": "application/pdf",
"expires_at": "2026-11-27T10:46:09Z"
}GET/v1/documents/{document_id}/outcome
What a member recorded the document turned out to be (confirmed fraud or genuine), why, who and when; null when nothing is recorded.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga documents get-outcome <document_id>- MCP tool
get_document_outcome- Returns
- The document’s known outcome, with the reason for fraud when given, who recorded it and when, or null.
Parameters
document_idRequiredThe document whose known outcome to read. In the path.
curl -X GET https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/outcome \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/documents/{document_id}/outcome
{
"object": "document_outcome",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"outcome": {
"value": "confirmed_fraud",
"reason": "manipulated",
"recorded_by": "Ines Moreau",
"recorded_at": "2026-11-26T08:39:44Z"
},
"history": [
{ "value": "genuine", "reason": null, "recorded_by": "Ines Moreau", "recorded_at": "2026-11-25T16:12:03Z" },
{ "value": "confirmed_fraud", "reason": "manipulated", "recorded_by": "Ines Moreau", "recorded_at": "2026-11-26T08:39:44Z" }
]
}POST/v1/documents/{document_id}/outcome
Mark a document confirmed fraud or genuine, or clear the mark; for fraud, optionally say why. It is kept with who and when, and later checks learn from it; the verdict and the scores stay as the checks found them.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents outcome <document_id> --outcome <confirmed_fraud|genuine|none> [--reason <known_fraud|false_content|manipulated|ai_generated>]- MCP tool
record_document_outcome- Returns
- The document’s known outcome, with the reason for fraud when given, who recorded it and when, or null once cleared.
Parameters
document_idRequiredThe document. In the path.
outcomeRequiredWhat it turned out to be, or
nullto clear it. Every version is kept with who recorded it and when, and the latest counts; recording the outcome it has already adds nothing. The verdict and the scores stay as the checks found them. One ofconfirmed_fraud,genuine.nullclears it.reasonFor fraud only:
known_fraud(known to have been used for fraud before),false_content(what it says is false),manipulated(changed from the original) orai_generated(made with an AI tool).nullclears it.
curl -X POST https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/outcome \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome": "confirmed_fraud",
"reason": "manipulated"
}'POST /v1/documents/{document_id}/outcome
{
"object": "document_outcome",
"document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"outcome": {
"value": "confirmed_fraud",
"reason": "manipulated",
"recorded_by": "Ines Moreau",
"recorded_at": "2026-11-26T08:39:44Z"
},
"history": [
{ "value": "genuine", "reason": null, "recorded_by": "Ines Moreau", "recorded_at": "2026-11-25T16:12:03Z" },
{ "value": "confirmed_fraud", "reason": "manipulated", "recorded_by": "Ines Moreau", "recorded_at": "2026-11-26T08:39:44Z" }
]
}DELETE/v1/documents/{document_id}
Delete a document checked on its own: its file, its pages, the fields read from it and its results. A record that it existed stays, and so does what the checks learned from it. A document on a case goes with its case, or when its retention period ends.
- Who may
- Owner and Admin
- CLI
kontiga documents delete <document_id>- MCP tool
delete_document- Returns
- The document’s id, deleted, with its deletion request: read it with deletions.get for what went and what stays.
Parameters
document_idRequiredA document checked on its own. A document on a case is deleted with its case, or when its retention period ends. In the path.
curl -X DELETE https://api.kontiga.com/v1/documents/doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a \
-H "Authorization: Bearer $KONTIGA_API_KEY"DELETE /v1/documents/{document_id}
{
"id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"object": "document",
"deleted": true,
"deletion": "del_0193f6c9a1b27d3e8f4a5b6c7d8e9f01"
}POST/v1/documents/delete
Delete up to 100 documents checked on their own in one call, as the documents list does with the documents chosen. Each one goes as Delete a document says; a document on a case is refused and named with why, and the rest are still deleted.
- Who may
- Owner and Admin
- CLI
kontiga documents delete-many --document-ids <document_id>,...- MCP tool
delete_documents- Returns
- Each document deleted, with its deletion request, and each document refused with why.
Parameters
document_idsRequiredUp to 100 documents. A document on a case is refused and named in
refusedwith why; the others are still deleted.
curl -X POST https://api.kontiga.com/v1/documents/delete \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document_ids": [
"doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a",
"doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e"
]
}'POST /v1/documents/delete
{
"object": "document_deletions",
"deleted": [
{ "id": "doc_0193f6b8e1a47c2d9b3f5a6e7d8c9b0a", "object": "document", "deleted": true, "deletion": "del_0193f6c9a1b27d3e8f4a5b6c7d8e9f01" }
],
"refused": [
{ "document_id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e", "reason": "It was not found in this workspace." }
]
}POST/v1/documents/{document_id}/type
Say what a document really is when it was read as another type. The correction is kept with who made it and when; the values are read again for the type, and the fraud score and verdict follow. What the document was found to be altered or generated stays as it was.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents correct-type <document_id> --type <type>- MCP tool
correct_document_type- Returns
- The document with its type corrected, its values being read again.
Parameters
document_idRequiredA checked document read as another type. One still being checked, or whose checks stopped, answers
409. In the path.typeRequiredWhat it really is, as the document’s
typenames it:payslip,bank_statements,invoice. The correction is kept with who made it and when; the values are read again for it and the fraud score and verdict follow, while the risk score and the findings stay as the checks found them.
curl -X POST https://api.kontiga.com/v1/documents/doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/type \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "payslip"
}'POST /v1/documents/{document_id}/type
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"mode": "live",
"case_id": "case_7Kq2Xw9",
"person_id": "per_2Nc6Qs8",
"type": "payslip",
"type_label": "Payslip",
"title": "Payslip, October 2026",
"file_name": "payslip-oct-2026.pdf",
"issuer": "Dunmore Freight Ltd",
"category": "income",
"source": "portal",
"pages": 1,
"received_at": "2026-11-24T09:31:20Z",
"state": "checked",
"stage": "done",
"check": null,
"risk_score": 46,
"fraud_score": 31,
"fraud_score_reason": null,
"verdict": "review",
"verdict_reason": null,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"where": "Page 1, the marked area",
"page": 1,
"detail": "The net pay reads 3,412.50. The payslip was issued with 2,912.50.",
"box": { "x": 0.62, "y": 0.71, "w": 0.24, "h": 0.04 },
"reviewed": false
},
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e00a4",
"kind": "positive",
"title": "Matches genuine payslips from this employer",
"where": "The whole document",
"page": 1,
"detail": "It matches genuine payslips from Dunmore Freight Ltd.",
"box": { "x": 0, "y": 0, "w": 1, "h": 1 },
"reviewed": false
}
],
"fields": [
{ "name": "employee_name", "value": "Marta Kowalczyk", "confidence": 0.99 },
{ "name": "employer_name", "value": "Dunmore Freight Ltd", "confidence": 0.98 },
{ "name": "pay_date", "value": "2026-10-31", "confidence": 0.97 },
{ "name": "net_pay", "value": "3412.50", "confidence": 0.95 }
],
"amount": { "label": "Net pay", "value": 3412.5, "currency": "EUR" },
"policy_findings": [],
"reference": "APP-20418-PAY-10",
"checked_at": "2026-11-24T09:31:58Z"
}POST/v1/documents/import
Bring a document checked on Kontiga’s site before the account existed into this workspace, with the token the site kept. It shows as checked and counts as the free start’s first document.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga documents import --token <token>- MCP tool
import_site_document- Returns
- The document, now this workspace’s, with its result.
Parameters
tokenRequiredThe token the site kept when the visitor checked the document, good for 48 hours. It claims once.
curl -X POST https://api.kontiga.com/v1/documents/import \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "Qm9vZ2llV29vZ2llQm9vZ2llV29vZ2llQm9vZ2llV29"
}'POST /v1/documents/import
{
"id": "doc_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
"object": "document",
"mode": "live",
"case_id": "case_7Kq2Xw9",
"person_id": "per_2Nc6Qs8",
"type": "payslip",
"type_label": "Payslip",
"title": "Payslip, October 2026",
"file_name": "payslip-oct-2026.pdf",
"issuer": "Dunmore Freight Ltd",
"category": "income",
"source": "portal",
"pages": 1,
"received_at": "2026-11-24T09:31:20Z",
"state": "checked",
"stage": "done",
"check": null,
"risk_score": 46,
"fraud_score": 31,
"fraud_score_reason": null,
"verdict": "review",
"verdict_reason": null,
"findings": [
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e0051",
"kind": "fraud",
"title": "The net pay was changed after the payslip was made",
"where": "Page 1, the marked area",
"page": 1,
"detail": "The net pay reads 3,412.50. The payslip was issued with 2,912.50.",
"box": { "x": 0.62, "y": 0.71, "w": 0.24, "h": 0.04 },
"reviewed": false
},
{
"id": "tag_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e00a4",
"kind": "positive",
"title": "Matches genuine payslips from this employer",
"where": "The whole document",
"page": 1,
"detail": "It matches genuine payslips from Dunmore Freight Ltd.",
"box": { "x": 0, "y": 0, "w": 1, "h": 1 },
"reviewed": false
}
],
"fields": [
{ "name": "employee_name", "value": "Marta Kowalczyk", "confidence": 0.99 },
{ "name": "employer_name", "value": "Dunmore Freight Ltd", "confidence": 0.98 },
{ "name": "pay_date", "value": "2026-10-31", "confidence": 0.97 },
{ "name": "net_pay", "value": "3412.50", "confidence": 0.95 }
],
"amount": { "label": "Net pay", "value": 3412.5, "currency": "EUR" },
"policy_findings": [],
"reference": "APP-20418-PAY-10",
"checked_at": "2026-11-24T09:31:58Z"
}