Document Counts
Query document counts grouped by filter conditions and source connections. Useful for building faceted navigation and dashboard widgets.
The document counts endpoint returns aggregate counts of documents matching filter conditions, grouped by source connection. Use it to power faceted navigation UIs and dashboard summary widgets without fetching full document lists.
Call this before POST /v1/documents/filter to preview how many documents match your conditions without fetching the full result set. The response groups counts by source connection, so you can render per-source facets in a sidebar alongside the main document list.