Skip to main content
POST
/
v1
/
ade
/
section
cURL
curl -X POST 'https://api.va.landing.ai/v1/ade/section' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'markdown=@parsed_output.md' \
  -F 'model=section-latest'
{
  "table_of_contents": [
    {
      "title": "<string>",
      "level": 123,
      "section_number": "<string>",
      "start_reference": "<string>"
    }
  ],
  "table_of_contents_md": "<string>",
  "metadata": {
    "filename": "<string>",
    "duration_ms": 123,
    "credit_usage": 123,
    "org_id": "<string>",
    "job_id": "",
    "version": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Your unique API key for authentication.

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

If using the EU endpoint, get your API key here: https://va.eu-west-1.landing.ai/settings/api-key.

Body

multipart/form-data

Request model for section endpoint.

markdown

Parsed markdown with reference anchors (). This is the markdown field from a parse response.

markdown_url
string | null

URL to fetch the markdown from.

guidelines
string | null

Natural-language instructions to control hierarchy. Examples: 'Group by topic', 'Treat each numbered section as a top-level entry'.

model
string | null

Section model version. Defaults to latest.

Response

Successful Response

Response model for section endpoint.

table_of_contents
SectionTOCEntry · object[]
required
table_of_contents_md
string
required
metadata
SectionMetadata · object
required

Public metadata for section response.