> ## Documentation Index
> Fetch the complete documentation index at: https://docs.insightai.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Document Analyze

> Performs document forgery analysis, layout anomaly detection, future-date inconsistencies, cross-field mismatches, and text manipulation traces.

Performs **document forgery analysis** on uploaded documents.\
The API checks for tampering, layout inconsistencies, value mismatches, and suspicious content patterns.


## OpenAPI

````yaml POST /forgery/analyse/analyse_docs_v2
openapi: 3.0.1
info:
  title: InsightAI Fraud Detection API
  description: >-
    APIs for fraud detection, prevention, bulk processing, and initial customer
    data load.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.insightai.in/
security:
  - bearerAuth: []
paths:
  /forgery/analyse/analyse_docs_v2:
    post:
      summary: Analyse document for forgery and inconsistencies
      description: >-
        Performs document forgery analysis, layout anomaly detection,
        future-date inconsistencies, cross-field mismatches, and text
        manipulation traces.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                document:
                  type: string
                  format: binary
                  description: Document file to be analysed (PDF, PNG, JPG, etc.)
                document_name:
                  type: string
                  description: User-provided name of the document.
                  example: dipak kumar - frontend react.pdf
                doc_format:
                  type: string
                  description: Type of document provided.
                  example: pdf
              required:
                - document
                - doc_format
      responses:
        '200':
          description: >-
            Document forgery analysis result containing anomaly detections,
            tampering indicators, and confidence scores.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentForgeryAnalysis'
components:
  schemas:
    DocumentForgeryAnalysis:
      type: object
      properties:
        id:
          type: integer
          description: Unique analysis report ID.
          example: 27
        document_name:
          type: string
          description: Name of the analysed document.
          example: dipak kumar - frontend react.pdf
        response:
          type: array
          description: List of detected anomalies or validation checks performed.
          items:
            type: object
            properties:
              issue:
                type: string
                description: Type or label of the detected issue.
                example: Inconsistent spaces after colons
              observation:
                type: string
                description: Human-readable explanation of the issue.
                example: >-
                  There are inconsistent spaces after colons in various
                  sections...
              confidence_score:
                type: integer
                description: Confidence score for this detection (0–100).
                example: 75
              tampered:
                type: boolean
                description: Indicates whether this issue likely represents tampering.
                example: false
              tampering_type:
                type: string
                description: Category of tampering or mismatch detected.
                example: layout_anomaly
        document_url:
          type: string
          description: Temporary URL to access the stored document.
          example: https://insightai-testing-sse.s3.amazonaws.com/b823d8_document.pdf
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````