Skip to main content
GET
Get Document Outline

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

document_file_id
string<uuid>
required

Document file ID. From List Document Files.

Response

The outline.

artifact_hash
string

Internal. Not needed to read the outline.

created_at
string

When the outline was built, ISO 8601.

document_asset_id
string

ID of the document file the outline was built for.

id
string

Outline ID.

knowledge_space_id
string

Internal ID of the knowledge base. Not the knowledge base ID in the path.

metadata
object

Additional outline details. Free-form object.

nodes
object[]

Top-level headings, in document order. Nested headings are in each heading's children.

outline_version
string

Internal. Not needed to read the outline.

parse_artifact_id
string

Internal. Not needed to read the outline.

updated_at
string | null

When the outline last changed, ISO 8601. null when it has not changed since it was built.

version
integer

The document file's version the outline belongs to. It does not change when a re-index rebuilds the outline, because a document file's version never changes.