Skip to main content

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

How Document Tampering Detection Works: Step-by-Step (2026)

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.

Document tampering detection at a glance
QuestionAnswer
What it detectsScreen replays, printed copies, portrait manipulation, specimen and public document images, data inconsistencies, and suspected manipulation on statements and invoices
Where it runsPOST 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 startThe 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 outputApproved, In Review or Declined, plus a warnings array with one object per risk
Default on suspected manipulationID Verification: the fraud risks always decline. Document AI: DECLINE through document_ai_document_tampering_action
Main caveatA 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_DETECTED and PUBLIC_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-key header 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_image is required, and back_image is 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

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

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

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

  4. 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'
  1. Send a supported document with the fields you need. fields is a JSON array of 1 to 30 items sent as one form value. Each item requires a key (lowercase letters, digits and underscores, unique in the request). name, instruction and type are optional, and type defaults to text; the other values are number and date. Mark at most one field is_full_name when 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"
The Document AI upload screen waiting for one file and its field definitions
Document AI takes one supported document per request plus the field list you define.
  1. 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 Declined status. A file that cannot be processed at all answers HTTP 400 with COULD_NOT_RECOGNIZE_DOCUMENT. Inspect id_verification.status and id_verification.warnings[]: an expired passport answers HTTP 200 with a DOCUMENT_EXPIRED warning and a Declined status. On Document AI, read document_ai.status and document_ai.warnings; an unreadable document raises DOCUMENT_AI_UNREADABLE_DOCUMENT, which defaults to REVIEW.

  2. Map each risk to the action you want. On Document AI you set an action per request: document_ai_document_tampering_action defaults to DECLINE, and document_ai_name_mismatch_action defaults to NO_ACTION, so a mismatch only blocks if you say so. On ID Verification, three groups are configurable through invalid_mrz_action, inconsistent_data_action and expiration_date_not_detected_action; the fraud risks always decline.

  3. 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 the workflow_id and your vendor_data. Open the returned session.url or 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"
  1. Handle In Review before you handle Approved. An In Review result 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 the status.updated webhook 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.

The analyzing document screen shown while a submitted file is checked
This screen shows document analysis in progress.
Three kinds of signal, and what to do with each
SignalExamplesAction to take
Authenticity and presentation, standalone ID VerificationSCREEN_CAPTURE_DETECTED, PRINTED_COPY_DETECTED, PORTRAIT_MANIPULATION_DETECTEDShow the warning description, stop the approval flow, and do not retry the same file.
Suspected manipulation, Document AIDOCUMENT_AI_SUSPECTED_MANIPULATIONFollow the returned status and the action you configured for that request. Route In Review to a reviewer.
Extraction failureCOULD_NOT_DETECT_DOCUMENT_TYPE, a 400 COULD_NOT_RECOGNIZE_DOCUMENT, DOCUMENT_AI_UNREADABLE_DOCUMENT, DOCUMENT_AI_MISSING_REQUIRED_FIELDSAsk for a new capture or a complete document. Nothing was approved.
Configurable business rule, standalone ID VerificationINVALID_MRZ, INCONSISTENT_DATA, EXPIRATION_DATE_NOT_DETECTEDFollow the action you set for that request: DECLINE or NO_ACTION.
Configurable business rule, Document AIDOCUMENT_AI_NAME_MISMATCHFollow document_ai_name_mismatch_action: DECLINE, REVIEW or NO_ACTION.
Tampering and integrity risks you will see in the response
Risk codeEndpointDefault outcome
SCREEN_CAPTURE_DETECTEDID VerificationAlways declines
PRINTED_COPY_DETECTEDID VerificationAlways declines
PORTRAIT_MANIPULATION_DETECTEDID VerificationAlways declines
PUBLIC_DOCUMENT_IMAGE_DETECTEDID VerificationAlways declines
SPECIMEN_DOCUMENT_DETECTEDID VerificationAlways declines
COULD_NOT_DETECT_DOCUMENT_TYPEID VerificationDeclines the request
INVALID_MRZ, INCONSISTENT_DATA, EXPIRATION_DATE_NOT_DETECTEDID VerificationConfigurable: DECLINE or NO_ACTION
DOCUMENT_LIVENESS_NOT_COMPUTEDID Verification, standalone with document liveness onIn Review if no decline already applies
POSSIBLE_DUPLICATED_USERID VerificationInformational, never declines alone
DOCUMENT_AI_SUSPECTED_MANIPULATIONDocument AIDECLINE
DOCUMENT_AI_NAME_MISMATCHDocument AINO_ACTION below the score threshold
DOCUMENT_AI_UNREADABLE_DOCUMENT, DOCUMENT_AI_MISSING_REQUIRED_FIELDS, DOCUMENT_AI_UNSUPPORTED_FILEDocument AIREVIEW

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

Inputs and outputs for the two tampering checks
CheckKey inputsKey outputsPrice
ID Verification, standalonefront_image, back_image, perform_document_liveness, the three action parameters, save_api_request, vendor_datarequest_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 workflowWorkflow with the ID Verification feature, session created from itid_verifications[] on the session decision$0.15 per completed check
Document AIdocument, fields, optional expected_first_name and expected_last_name or expected_company_name, the five action parametersdocument_ai.status, extracted_data, detected_codes[], name_match_score, name_on_document, warnings[]$0.20 per document

Failure cases and how to recover

Failure cases and recovery paths
Endpoint and scopeWhat you getRecovery
ID Verification, standalone: file cannot be read at allHTTP 400 with COULD_NOT_RECOGNIZE_DOCUMENTAsk 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 warningHTTP 200 with a Declined statusShow 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 scoreWith 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 lowHTTP 403 with the not-enough-credits error before any image processingTop up or move the test to the sandbox. No image is processed, so nothing is billed.
Document AI: wrong shape for fieldsHTTP 400 before extractionSend 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 matchname_match_score below the threshold, default 80The 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 401Error body from the retrieve endpoint404 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.

Business Console session detail showing the ID document step and its result
A saved session in the Business Console keeps the document step, its warnings and the reviewer action in one place.

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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.