Documents

Get component stats for a set of documents

Get component and page-type statistics aggregated over an explicit list of documents (e.g. the documents of a single batch upload).

post/api/v0/documents/stats

Request body

document_idsstring[] required

Public IDs of the documents to aggregate component stats for.

Response

Successful Response

document_countinteger required

The number of documents in the knowledge base.

total_pagesinteger required

The total number of pages across all documents.

component_countsobject required

Component counts by type (e.g., table, flowchart, text).

total_componentsinteger required

The total number of components across all documents.

Changes