List documents
GET /v1/knowledge-bases/{kb_id}/documents
List all documents in a knowledge base. Supports cursor-based pagination and status filtering.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
kb_a1b2c3d4e5Knowledge base ID
Query Parameters
Section titled “Query Parameters ”Pagination cursor from a previous response’s meta.cursor field
Maximum number of items to return per page
Filter by document processing status
Responses
Section titled “ Responses ”Documents retrieved
object
object
Document ID (prefixed with doc_)
Example
doc_f6g7h8i9j0Parent knowledge base ID
Example
kb_a1b2c3d4e5Owning account ID
Example
acc_x9y8z7w6v5Original file name
Example
product-guide.pdfFile extension
Example
pdfFile size in bytes
Example
2048576Number of pages (for Tier 1 files, set after parsing)
Example
15Number of chunks generated from this document
Example
34Error message if status is failed
User-supplied metadata (filterable at search time)
object
Example
{ "department": "engineering", "version": 2}Internal storage path
Example
acc_x9y8z7w6v5/kb_a1b2c3d4e5/doc_f6g7h8i9j0/product-guide.pdfExample
2026-02-10T12:00:00.000ZExample
2026-02-10T12:01:30.000Zobject
Cursor to pass for the next page. Null if no more results.
Example
eyJpZCI6ImtiX2FiYzEyMyJ9Whether more results are available
Example
trueAuthentication failed or missing
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "AUTHENTICATION_ERROR", "message": "Invalid or missing API key" }}Rate limit exceeded
object
object
Machine-readable error code
Example
VALIDATION_ERRORHuman-readable error message
Example
Invalid request bodyAdditional error details (e.g., validation issues)
object
Example
{ "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Rate limit exceeded" }}