{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nativeport-ai/json-schema/nativeport-ai-llamaparse-job-response-schema.json",
  "title": "LlamaparseJobResponse",
  "description": "The job as LlamaCloud reports it, re-serialized by the gateway. Shared-account identifiers\nand the gateway's internal reconciliation fields are removed; everything else — including\nthe parsed content you paid for — is preserved as it arrived. Field-level detail beyond\n`job.status` belongs to LlamaParse's own documentation.\n\nParsed content appears only when `expand` asked for it, **under the key you asked for** —\n`text` or `markdown`, each an object carrying `pages[]` with `page_number` — never at the\ntop level. Every key you did not ask for is present and `null`, so a `\"text\": null` on a\n`COMPLETED` job means the read carried no `expand`, not that the job produced nothing\n(verified against the live API on 2026-09-10).\n",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nativeport-ai-openapi.yml#/components/schemas/LlamaparseJobResponse",
  "type": "object",
  "properties": {
    "job": {
      "$ref": "#/$defs/LlamaparseJobResponseJob",
      "description": "The job itself."
    }
  },
  "$defs": {
    "LlamaparseJobResponseJob": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The job id."
        },
        "status": {
          "$ref": "#/$defs/LlamaparseJobStatus"
        }
      },
      "description": "The job itself.",
      "title": "LlamaparseJobResponseJob"
    },
    "LlamaparseJobStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "RUNNING",
        "COMPLETED",
        "FAILED",
        "CANCELLED"
      ],
      "description": "Where the job is. `PENDING` and `RUNNING` mean keep polling; `COMPLETED`, `FAILED`, and\n`CANCELLED` are terminal, and a terminal job's charge is reconciled to LlamaCloud's own\nexact reported usage, plus the gateway's 5.5% fee, once that usage is reported — until then,\nthe create-time reservation stands.\n",
      "title": "LlamaparseJobStatus"
    }
  }
}