How Document Tampering Detection Works: Step-by-Step (2026)
Check government IDs for forgery with ID Verification ($0.15 per workflow check or $0.20 per API call). Check statements and payslips for suspected manipulation with Document AI ($0.20 per document).

Contents
In this guide
Jump to the part you need.
We screen government-issued IDs for signs of forgery and data inconsistencies at $0.15 per completed workflow check or $0.20 per completed standalone API call. For teams reviewing bank statements, payslips or invoices, Document AI checks for suspected manipulation at $0.20 per document. A passing result means the checks that ran did not trigger a blocking action. Review flagged cases according to the returned status and warnings.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Question | Answer |
|---|---|
| What it detects | Screen replays, printed copies, portrait manipulation, specimen and public document images, data inconsistencies, and suspected manipulation on statements and invoices |
| Where it runs | POST https://verification.didit.me/v3/id-verification/ for government IDs; POST https://verification.didit.me/v3/document-ai/ for supported PDFs and images such as statements, payslips and invoices |
| Price | $0.15 per completed ID workflow check, $0.20 per completed standalone ID API call, $0.20 per Document AI document |
| Free to start | The Free plan includes $10 a month for the first organization created with an eligible work email for a company domain; sandbox testing is free on every plan |
| Decision output | Approved, In Review or Declined, plus a warnings array with one object per risk |
| Default on suspected manipulation | ID Verification: the fraud risks always decline. Document AI: DECLINE through document_ai_document_tampering_action |
| Main caveat | A passing result means the checks that ran did not trigger a blocking action. When document liveness is enabled on the standalone ID API, an unusable forgery score produces DOCUMENT_LIVENESS_NOT_COMPUTED and In Review if no decline already applies |
Start free in the sandbox at business.didit.me, with no sales call. Developers can connect Didit to an AI assistant through the Didit MCP server. Full prices and plan terms are on the pricing page.
Choose the check for your document
The outcome you want is a per-file decision your system can act on without a person opening the file: Approved, In Review or Declined, plus the risks behind it. Two server-to-server endpoints cover it. Branch on the returned status and warning codes, never on the HTTP status code alone.
- Government-issued identity documents (passport, national ID card, driver's licence, residence permit): use ID Verification, with the request details in the standalone API reference. Didit supports 14,000+ document types across 220+ countries and territories and classifies submitted IDs against known document designs. It reads the visual zone and the MRZ, and with
perform_document_liveness=true(the default) screens the images for screen replays, printed copies and portrait manipulation. - Supported PDFs and images such as statements, payslips and invoices: use Document AI, with the request details in the standalone API reference. You define 1 to 30 fields, and the response adds a manipulation check, any supported QR codes and barcodes, and an optional name match against the person or company you expect. Unit prices for both are on the Didit pricing page.
What counts as document tampering
Tampering is a change made to a document after issue, or a copy that pretends to be the original. The cases split into groups, and each maps to a different risk code, which is why you should not collapse them into one fraud score.
- Data modification. A name, date, amount or document number edited in the visual zone. The standalone ID API reads the visual zone, decodes the machine-readable zone (MRZ) and any barcodes, and compares visual-zone data with MRZ data. Invalid MRZ and inconsistent data can be configured to decline or take no action.
- Image manipulation. Portrait manipulation can trigger
PORTRAIT_MANIPULATION_DETECTED. - Identification failure. An image that cannot be matched with high confidence to a known official design triggers
COULD_NOT_DETECT_DOCUMENT_TYPE, which declines the request. - Presentation attacks on the capture. A photo of a screen, a photo of a printout, a specimen sample, or an image taken from a public source. Reported as
SCREEN_CAPTURE_DETECTED,PRINTED_COPY_DETECTED,SPECIMEN_DOCUMENT_DETECTEDandPUBLIC_DOCUMENT_IMAGE_DETECTED. - Alterations on non-ID documents. An edited statement, payslip or invoice. Document AI checks the file for manipulation and raises
DOCUMENT_AI_SUSPECTED_MANIPULATION.
Prerequisites
- A Didit account at business.didit.me and an API key sent in the
x-api-keyheader on every call. - Credit on the organization. The Free plan includes $10 a month for the first organization created with an eligible work email for a company domain, and sandbox testing is free on every plan. On the standalone ID API, insufficient credit returns HTTP 403 before image processing.
- For ID Verification:
front_imageis required, andback_imageis required for dual-sided documents such as ID cards and driver's licences. Allowed extensions are tiff, jpg, jpeg, png, webp and pdf, up to 5 MB per file. Send uncropped images with all four corners visible; the service detects, aligns and crops the document itself. - For Document AI, send one supported PDF or image per request and define the fields you want extracted.
- For a user-facing flow instead of a server call: a workflow that contains the ID Verification feature, and its workflow UUID.
How to run document tampering detection, step by step
Pick the endpoint by document type. Official identity documents go to
/v3/id-verification/, because that call classifies the file against known document designs. Statements, payslips, invoices and other commercial documents go to/v3/document-ai/: Document AI lets you define the fields to read from documents that do not fit a fixed template.Prepare the file. For ID Verification, keep the full frame: all four corners of the document must be visible, up to 5 MB per file. Do not pre-crop, and do not send a screenshot of a photo. For Document AI, send one supported document per request.
Authenticate and confirm credit. Send the key in
x-api-key. On the standalone ID API, HTTP 403 with the not-enough-credits error means nothing was processed, so fix the balance before debugging anything else.Send an identity document. The call below turns on the forgery check, declines on an invalid MRZ or inconsistent data, and persists the request as an API session so you can read the decision later.
curl -X POST 'https://verification.didit.me/v3/id-verification/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'front_image=@./id_front.jpg' \
-F 'back_image=@./id_back.jpg' \
-F 'perform_document_liveness=true' \
-F 'invalid_mrz_action=DECLINE' \
-F 'inconsistent_data_action=DECLINE' \
-F 'expiration_date_not_detected_action=DECLINE' \
-F 'save_api_request=true' \
-F 'vendor_data=user-123'
Send a supported document with the fields you need.
fieldsis a JSON array of 1 to 30 items sent as one form value. Each item requires akey(lowercase letters, digits and underscores, unique in the request).name,instructionandtypeare optional, andtypedefaults totext; the other values arenumberanddate. Mark at most one fieldis_full_namewhen you want the name matched.
curl -X POST https://verification.didit.me/v3/document-ai/ \
-H "x-api-key: $DIDIT_API_KEY" \
-F "document=@./bank-statement.pdf" \
-F 'fields=[{"key":"account_holder","name":"Account holder","instruction":"Full name of the account holder","type":"text","required":true,"is_full_name":true},{"key":"balance","name":"Closing balance","instruction":"Closing balance as a number","type":"number","required":true}]' \
-F "expected_first_name=Jane" \
-F "expected_last_name=Doe"

Read the HTTP response and the feature decision. On standalone ID Verification, a readable document with a hard-decline fraud warning returns HTTP 200 with a
Declinedstatus. A file that cannot be processed at all answers HTTP 400 withCOULD_NOT_RECOGNIZE_DOCUMENT. Inspectid_verification.statusandid_verification.warnings[]: an expired passport answers HTTP 200 with aDOCUMENT_EXPIREDwarning and aDeclinedstatus. On Document AI, readdocument_ai.statusanddocument_ai.warnings; an unreadable document raisesDOCUMENT_AI_UNREADABLE_DOCUMENT, which defaults toREVIEW.Map each risk to the action you want. On Document AI you set an action per request:
document_ai_document_tampering_actiondefaults toDECLINE, anddocument_ai_name_mismatch_actiondefaults toNO_ACTION, so a mismatch only blocks if you say so. On ID Verification, three groups are configurable throughinvalid_mrz_action,inconsistent_data_actionandexpiration_date_not_detected_action; the fraud risks always decline.Move the check into a session if the person captures the document. Create a workflow with the ID Verification feature, then call
POST https://verification.didit.me/v3/session/with theworkflow_idand yourvendor_data. Open the returnedsession.urlor mount an SDK, then fetch the decision.
curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workflow_id":"WORKFLOW_UUID","vendor_data":"user-123"}'
The session decision carries a top-level status for the whole flow and a separate id_verifications[] array with one entry per document collected, each with its own status and warnings. Read both: the session can be In Review because of a different feature. Fetch it with GET /v3/session/{session_id}/decision/ using a key that holds the read:sessions privilege.
curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
-H "x-api-key: YOUR_API_KEY"
Handle In Review before you handle Approved. An
In Reviewresult requires review before approval. Inspect the feature warnings to see what triggered it. Use the Business Console for saved sessions or route the result to a reviewer in your application. Subscribe to thestatus.updatedwebhook so the change comes back to you instead of being polled; payloads use the same decision shape as the retrieve endpoint and are signed with HMAC-SHA256.
What a tampering result looks like
Both excerpts below are abridged and the description strings are elided. The first is an illustrative excerpt from a standalone ID Verification response. The second shows the documented Document AI fields: document_ai.status, document_ai.detected_codes and document_ai.warnings.
{
"id_verification": {
"status": "Declined",
"document_type": "Passport",
"warnings": [
{
"feature": "ID_VERIFICATION",
"risk": "SCREEN_CAPTURE_DETECTED",
"short_description": "...",
"long_description": "..."
}
]
}
}
{
"document_ai": {
"status": "Declined",
"detected_codes": [],
"warnings": [
{"risk": "DOCUMENT_AI_SUSPECTED_MANIPULATION"}
]
}
}
The request supplies Jane Doe as the expected account holder. If Document AI extracts an account holder name, the response includes name_on_document and a name_match_score from 0 to 100. detected_codes is an array of the supported codes found on the processed pages, and its parsed_payload is null when a code can be located but cannot be decoded. Didit never guesses a payload, and a detection failure does not fail the request.

| Signal | Examples | Action to take |
|---|---|---|
| Authenticity and presentation, standalone ID Verification | SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED | Show the warning description, stop the approval flow, and do not retry the same file. |
| Suspected manipulation, Document AI | DOCUMENT_AI_SUSPECTED_MANIPULATION | Follow the returned status and the action you configured for that request. Route In Review to a reviewer. |
| Extraction failure | COULD_NOT_DETECT_DOCUMENT_TYPE, a 400 COULD_NOT_RECOGNIZE_DOCUMENT, DOCUMENT_AI_UNREADABLE_DOCUMENT, DOCUMENT_AI_MISSING_REQUIRED_FIELDS | Ask for a new capture or a complete document. Nothing was approved. |
| Configurable business rule, standalone ID Verification | INVALID_MRZ, INCONSISTENT_DATA, EXPIRATION_DATE_NOT_DETECTED | Follow the action you set for that request: DECLINE or NO_ACTION. |
| Configurable business rule, Document AI | DOCUMENT_AI_NAME_MISMATCH | Follow document_ai_name_mismatch_action: DECLINE, REVIEW or NO_ACTION. |
| Risk code | Endpoint | Default outcome |
|---|---|---|
SCREEN_CAPTURE_DETECTED | ID Verification | Always declines |
PRINTED_COPY_DETECTED | ID Verification | Always declines |
PORTRAIT_MANIPULATION_DETECTED | ID Verification | Always declines |
PUBLIC_DOCUMENT_IMAGE_DETECTED | ID Verification | Always declines |
SPECIMEN_DOCUMENT_DETECTED | ID Verification | Always declines |
COULD_NOT_DETECT_DOCUMENT_TYPE | ID Verification | Declines the request |
INVALID_MRZ, INCONSISTENT_DATA, EXPIRATION_DATE_NOT_DETECTED | ID Verification | Configurable: DECLINE or NO_ACTION |
DOCUMENT_LIVENESS_NOT_COMPUTED | ID Verification, standalone with document liveness on | In Review if no decline already applies |
POSSIBLE_DUPLICATED_USER | ID Verification | Informational, never declines alone |
DOCUMENT_AI_SUSPECTED_MANIPULATION | Document AI | DECLINE |
DOCUMENT_AI_NAME_MISMATCH | Document AI | NO_ACTION below the score threshold |
DOCUMENT_AI_UNREADABLE_DOCUMENT, DOCUMENT_AI_MISSING_REQUIRED_FIELDS, DOCUMENT_AI_UNSUPPORTED_FILE | Document AI | REVIEW |
On Document AI the strictest triggered action decides the status, in the order Declined, then In Review, then Approved, and every triggered risk is listed in document_ai.warnings. Name matching runs when an expected name is supplied and a name is extracted; if no field is marked is_full_name, Didit falls back to the first text field whose key looks like a name. The score is 0 to 100 and the threshold is document_ai_name_match_score_threshold, default 80. When no name value can be found on the document, or no expected name is sent, the check is skipped and name_match_score is null.
Inputs and outputs
| Check | Key inputs | Key outputs | Price |
|---|---|---|---|
| ID Verification, standalone | front_image, back_image, perform_document_liveness, the three action parameters, save_api_request, vendor_data | request_id, id_verification.status, holder fields, mrz, barcodes, warnings[], plus cropped document and portrait media URLs when save_api_request=true | $0.20 per completed call |
| ID Verification, inside a workflow | Workflow with the ID Verification feature, session created from it | id_verifications[] on the session decision | $0.15 per completed check |
| Document AI | document, fields, optional expected_first_name and expected_last_name or expected_company_name, the five action parameters | document_ai.status, extracted_data, detected_codes[], name_match_score, name_on_document, warnings[] | $0.20 per document |
Failure cases and how to recover
| Endpoint and scope | What you get | Recovery |
|---|---|---|
| ID Verification, standalone: file cannot be read at all | HTTP 400 with COULD_NOT_RECOGNIZE_DOCUMENT | Ask for a new capture with all four corners visible, up to 5 MB per file. No credit is consumed. |
| ID Verification, standalone: readable document with a hard-decline fraud warning | HTTP 200 with a Declined status | Show the first warning's long_description to the user and stop the flow. Do not retry the same file. |
| ID Verification, standalone, with document liveness on: forgery check produced no score | With perform_document_liveness=true, the standalone ID API returns DOCUMENT_LIVENESS_NOT_COMPUTED and In Review if no decline already applies. A Declined result takes precedence. | Treat the document as unchecked and route it to manual review. The escalation is not configurable. |
| Standalone ID Verification: balance too low | HTTP 403 with the not-enough-credits error before any image processing | Top up or move the test to the sandbox. No image is processed, so nothing is billed. |
Document AI: wrong shape for fields | HTTP 400 before extraction | Send one JSON-encoded array string in a single fields value, not bracket-style form keys. Nothing is billed. |
| Document AI: name on the document does not match | name_match_score below the threshold, default 80 | The mismatch raises DOCUMENT_AI_NAME_MISMATCH and applies document_ai_name_mismatch_action. Set the action yourself if it should block. |
| Session decision fetch: 404, 403 or 401 | Error body from the retrieve endpoint | 404 means the session id is wrong or belongs to a different application; 403 means the key lacks read:sessions; 401 means confirm the API key is valid. |
What you pay for, and where review begins
Standalone ID Verification consumes one $0.20 API credit for each HTTP 200 response, even when the result is Declined or In Review. ID Verification inside a workflow costs $0.15 per completed check. Document AI costs $0.20 per completed document, and invalid fields requests that fail validation before extraction are unbilled.
Review is a separate step with its own boundary. For hosted identity workflows, use the session-level decision to determine whether the flow is Approved. For standalone checks, use the feature status to decide how to handle the submitted document. A Document AI Approved status applies to that file. Send In Review results to a reviewer.

Worked cost example
Suppose you onboard 2,000 people a month, each with one identity document and one bank statement, and you run the full ID check rather than the document alone.
- Full ID check: $0.33 x 2,000 = $660.00. The $0.33 is the ID document at $0.15 + passive liveness at $0.10 + face match at $0.05 + device and IP analysis at $0.03.
- Document AI on the bank statements: $0.20 x 2,000 = $400.00.
- Gross list-price usage: $660.00 + $400.00 = $1,060.00 a month.
On the Growth plan, $99 a month with 4% off every Didit price: $0.3168 x 2,000 = $633.60 for the ID checks and $0.192 x 2,000 = $384.00 for Document AI. Growth usage comes to $633.60 + $384.00 = $1,017.60. Apply the $115 monthly credit first, leaving $902.60 to cover from top-ups. Add the $99 monthly plan fee: the cash outlay after the Growth credit and the plan fee is $1,001.60 for this month, assuming no existing top-up balance.
If the use case only needs the document, the ID line alone is $0.15 x 2,000 = $300.00 a month, or $0.144 x 2,000 = $288.00 on Growth. The unit rates are available in Didit's machine-readable price feed.
Sources
- Didit docs: Document AI API
- Didit docs: Document AI overview
- Didit docs: ID Verification API
- Didit docs: ID Verification overview
- Didit docs: ID Verification warnings
- Didit docs: Document AI rules and warnings
- Didit docs: Create Session API
- Didit docs: Retrieve Session decision
- Didit docs: Webhooks
- Didit docs: Data models
- Didit pricing page and pricing.json, read November 26, 2026
- Didit docs: Pricing and billing
- Didit MCP server
The next step is a sandbox run: create an application at business.didit.me, send one authorized test ID and one sample statement containing no real account data to the two endpoints, and read the warnings before you wire any decision logic. No sales call is needed to start.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is document tampering detection?
Document tampering detection is the set of checks that decide whether a document shows signs of alteration or suspicious presentation, and whether the file you received looks like an original rather than a re-photographed or edited copy. It combines document classification against known designs, OCR and MRZ cross-checks, and image forgery screening. Didit returns a status plus a list of risk codes, so the result can be automated. Detection here means checking for signs of alteration, not proving a document original.
What counts as document tampering?
Tampering covers edited fields such as names, dates and amounts, replaced or retouched portraits, specimen documents, and copies made by photographing a screen or a printout. On IDs with a machine-readable zone (MRZ), edits to printed fields can produce an INCONSISTENT_DATA warning when those fields disagree with the MRZ. The standalone ID API also checks MRZ validity separately and can return INVALID_MRZ. Screen replays, printed copies, portrait manipulation and specimen documents have named warnings: SCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTED and SPECIMEN_DOCUMENT_DETECTED.
How does altered document verification work on an identity document?
You send the front image, and the back for dual-sided documents, to POST https://verification.didit.me/v3/id-verification/. Didit supports 14,000+ document types across 220+ countries and territories and classifies submitted IDs against known document designs, reads the visual zone with OCR, decodes the MRZ and barcodes, and cross-checks the fields. With perform_document_liveness=true it also screens the images for forgery. The response carries a status and any warnings.
Can standalone Didit ID Verification detect a photo of a screen or a printed copy of an ID?
Yes. Standalone Didit ID Verification reports screen replays and printed copies as SCREEN_CAPTURE_DETECTED and PRINTED_COPY_DETECTED, and those fraud risks are hard declines that are not configurable to NO_ACTION on that endpoint. Keep perform_document_liveness on, which is the default, or the forgery screen does not run at all.
What does the API return when it suspects tampering?
Standalone ID Verification returns HTTP 200 with Declined and a warning when it detects a hard-decline fraud risk. If document liveness is enabled and yields no usable score, the standalone ID API returns In Review unless a decline already applies. Document AI lists DOCUMENT_AI_SUSPECTED_MANIPULATION in its warnings when it suspects manipulation, and the configured action contributes to the final status.
How much does document tampering detection cost?
ID Verification costs $0.15 per completed check inside a workflow and $0.20 per completed call on the standalone ID Verification API. Document AI costs $0.20 per document. The Free plan includes $10 a month for the first organization created with an eligible work email for a company domain, and sandbox testing is free.
What happens if the forgery check cannot produce a score?
With perform_document_liveness=true, the standalone ID API returns DOCUMENT_LIVENESS_NOT_COMPUTED and In Review if no decline already applies. A Declined result takes precedence. Treat the document as unchecked and route it to manual review, because that escalation is not configurable.
Can I check a bank statement or payslip for tampering?
Yes. Send a supported PDF or image, such as a bank statement or payslip, to POST https://verification.didit.me/v3/document-ai/ with the fields you want read, at $0.20 per document. The response includes a manipulation check that raises DOCUMENT_AI_SUSPECTED_MANIPULATION, which defaults to DECLINE, and you can set that action to REVIEW or NO_ACTION per request.
Does tampering detection replace manual review?
No. For hosted identity workflows, use the session-level decision to determine whether the flow is Approved. For standalone checks, use the feature status to decide how to handle the submitted document. A Document AI Approved status applies to that file. Send In Review results to a reviewer. The automated status is a decision input, not an approval.
How do I test tampering detection before paying?
Create an application in the sandbox at business.didit.me; sandbox testing is free and unlimited, and nothing is charged there. Live calls then draw on plan credit, starting with $10 a month on the Free plan for the first organization created with an eligible work email for a company domain. In a sandbox session, pass sandbox_scenario on POST /v3/session/ to reproduce a bundled outcome from the sandbox catalog. Choose an available scenario for the session behavior you want to test.
What is the difference between ID Verification and Document AI?
ID Verification is for government-issued identity documents: it classifies the file against known official designs and runs the forgery checks. Document AI is for documents that do not fit a fixed template, such as bank statements, payslips and invoices: you define the fields, and it extracts them, decodes supported barcodes and runs a manipulation check. Both return a status and a warnings list. The standalone ID API costs $0.20 per completed call, ID Verification inside a workflow costs $0.15 per completed check, and Document AI costs $0.20 per document.
Which documents and countries are supported?
Didit supports 14,000+ document types across 220+ countries and territories for ID Verification, with 54 languages in the verification flow. For Document AI, you define the fields to extract from the submitted PDF or image. Document AI returns each field as text, number or date in YYYY-MM-DD form. Didit serves 4,000+ companies in production.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


