POST
/
v1
/
tools
/
agentic-document-analysis
curl --request POST \
  --url https://api.va.landing.ai/v1/tools/agentic-document-analysis \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: multipart/form-data' \
  --form include_marginalia=true \
  --form 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": "form",
        "chunk_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ],
    "extracted_schema": {},
    "extraction_metadata": {}
  },
  "errors": [
    {
      "page_num": 123,
      "error": "<string>",
      "error_code": 123
    }
  ],
  "extraction_error": "<string>"
}

Headers

Authorization
string
required

Enter 'Basic ' followed by your API key.

Get your API key at https://va.landing.ai/settings/api-key.

Example:

"Basic YOUR_API_KEY"

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

multipart/form-data

Response

200
application/json

Successful Response

The response is of type object.