{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docupanda/json-schema/docupanda-analyze-document-request-schema.json",
  "title": "AnalyzeDocumentRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docupanda-analysis-api-openapi.yml#/components/schemas/AnalyzeDocumentRequest",
  "properties": {
    "documentId": {
      "type": "string",
      "title": "Document ID",
      "description": "Unique identifier of the document to be questioned."
    },
    "questions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Questions",
      "description": "List of questions to be answered."
    },
    "instructions": {
      "type": "string",
      "title": "Instructions",
      "description": "Global instructions to provide additional guidelines or context to the AI when answering the questions."
    },
    "pages": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Pages",
      "description": "List of zero indexed page numbers to analyze. If omitted, all pages are analyzed. For XLS/XLSX files, each number selects a worksheet by its zero indexed position. This parameter is ignored for CSV, TXT, XML, and JSON files, which are always analyzed in full."
    }
  },
  "type": "object",
  "required": [
    "documentId",
    "questions"
  ]
}