POST
/
v1
/
tools
/
agentic-document-analysis
curl --request POST \
  --url https://api.va.landing.ai/v1/tools/agentic-document-analysis \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data include_marginalia=true \
  --data include_metadata_in_markdown=true
{
  "data": {
    "markdown": "<string>",
    "chunks": [
      {
        "text": "<string>",
        "grounding": [
          {
            "box": {
              "l": 123,
              "t": 123,
              "r": 123,
              "b": 123
            },
            "page": 123
          }
        ],
        "chunk_type": "title",
        "chunk_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ]
  },
  "errors": [
    {
      "page_num": 123,
      "error": "<string>",
      "error_code": 123
    }
  ]
}

Query Parameters

pages
string | null

Which pages to process, separated by comma and starting from 0. For example, to process the first 3 pages, use '0,1,2'.

timeout
integer | null
default:480

Body

application/x-www-form-urlencoded

Response

200
application/json

Successful Response

The response is of type object.