Skip to main content
get/knowledge-fs/spaces/{knowledge_base_id}/documents/{document_file_id}/outline
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/documents/{document_file_id}/outline

Authorization

Authorizationstringheaderrequired#

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_idstringrequired#
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_idstringrequired#
Document file ID. From List Document Files.

Responses

application/json
The outline.
artifact_hashstring#
Internal. Not needed to read the outline.
created_atstring#
When the outline was built, ISO 8601.
document_asset_idstring#
ID of the document file the outline was built for.
idstring#
Outline ID.
knowledge_space_idstring#
Internal ID of the knowledge base. Not the knowledge base ID in the path.
metadataobject#
Additional outline details. Free-form object.
nodesobject[]#
Top-level headings, in document order. Nested headings are in each heading's children.
outline_versionstring#
Internal. Not needed to read the outline.
parse_artifact_idstring#
Internal. Not needed to read the outline.
updated_atstring#
When the outline last changed, ISO 8601. null when it has not changed since it was built.
versioninteger#
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.