Skip to main content
POST
/
forgery
/
analyse
/
analyse_docs_v2
Analyse document for forgery and inconsistencies
curl --request POST \
  --url https://api.insightai.in/forgery/analyse/analyse_docs_v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form document='@example-file' \
  --form doc_format=pdf \
  --form 'document_name=dipak kumar - frontend react.pdf'
{
  "id": 27,
  "document_name": "dipak kumar - frontend react.pdf",
  "response": [
    {
      "issue": "Inconsistent spaces after colons",
      "observation": "There are inconsistent spaces after colons in various sections...",
      "confidence_score": 75,
      "tampered": false,
      "tampering_type": "layout_anomaly"
    }
  ],
  "document_url": "https://insightai-testing-sse.s3.amazonaws.com/b823d8_document.pdf"
}
Performs document forgery analysis on uploaded documents.
The API checks for tampering, layout inconsistencies, value mismatches, and suspicious content patterns.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
document
file
required

Document file to be analysed (PDF, PNG, JPG, etc.)

doc_format
string
required

Type of document provided.

Example:

"pdf"

document_name
string

User-provided name of the document.

Example:

"dipak kumar - frontend react.pdf"

Response

200 - application/json

Document forgery analysis result containing anomaly detections, tampering indicators, and confidence scores.

id
integer

Unique analysis report ID.

Example:

27

document_name
string

Name of the analysed document.

Example:

"dipak kumar - frontend react.pdf"

response
object[]

List of detected anomalies or validation checks performed.

document_url
string

Temporary URL to access the stored document.

Example:

"https://insightai-testing-sse.s3.amazonaws.com/b823d8_document.pdf"