---
title: "Agentic Document Extraction (Legacy)"
method: POST
path: "/v1/tools/agentic-document-analysis"
tags: ["Tools"]
---

# Agentic Document Extraction (Legacy)

`POST /v1/tools/agentic-document-analysis`

This is a legacy endpoint. Use the ADE Parse endpoint instead.

Send
    documents to the Agentic Document Extraction API.

The API parses the
    documents and returns the extracted data as structured Markdown and JSON.

You
    can include an extraction schema to extract key-value pairs from the parsed
    content.

For EU users, use this endpoint:


    `https://api.va.eu-west-1.landing.ai/v1/tools/agentic-document-analysis`.

## Query parameters

- `pages` string, nullable — Which pages to process, separated by commas and starting from 0. For example, to process the first 3 pages, use '0,1,2'.

## Response `200`

Successful Response

- AgenticDocAnalysisResponse
  - `data` AgenticDocumentAnalysisBase, required
    - `markdown` union, required
      - string
      - string[]
    - `extracted_schema` object, nullable
    - `extraction_metadata` object, nullable
    - `chunks` DocumentAnalysisChunk[], required
      - `text` string, required
      - `grounding` Grounding[], required
        - `box` GroundingBox, required
          - `l` number, required
          - `t` number, required
          - `r` number, required
          - `b` number, required
        - `page` integer, required
      - `chunk_type` 'logo' | 'card' | 'attestation' | 'scan_code' | 'form' | 'table' | 'figure' | 'text' | 'marginalia' | 'title' | 'page_header' | 'page_footer' | 'page_number' | 'key_value', required
      - `chunk_id` string, required
      - `rotation_angle` number
  - `errors` AgenticDocAnalysisPageError[]
    - `page_num` integer, required
    - `error` string, required
    - `error_code` integer, required
  - `extraction_error` string, nullable
  - `metadata` object, nullable

## Other responses

- `206` — Contains only pages that succeeded processing
- `422` — Validation Error

## Changes

- **2026-02-13** `eeb4eb7952ab` — 1 info
  - endpoint added
- **2026-02-13** `62ce42134d4b` — 1 breaking
  - api path removed without deprecation
- **2026-02-13** `eeb4eb7952ab` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/landing-ai/apis/ade-api/changes/v1/tools/agentic-document-analysis/post.md)

---

[API](https://skmtc.dev/landing-ai/apis/ade-api.md) · [All operations](https://skmtc.dev/landing-ai/apis/ade-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/landing-ai/ade-api/revisions/eeb4eb7952ab/schema)
