List Documents
List documents in a knowledge base with pagination, filtering, and sorting.
/api/v1/knowledge/{id}/documentsAuthorization
apiKey Your SteelEngine API key (personal, workspace, or organization). Create personal and workspace keys under Settings > API Keys. Create organization keys under Organization Settings > API Keys.
In: header
Path Parameters
Knowledge base ID.
Query Parameters
The unique identifier of the workspace.
Maximum number of documents to return (1-100, default 50).
1 <= value <= 10050Number of documents to skip (default 0). Deprecated: use cursor. When both are sent, cursor wins.
0 <= value0Pagination cursor returned in a previous response's nextCursor field.
Search documents by filename.
Filter by enabled status.
"all"Value in
- "all"
- "enabled"
- "disabled"
Field to sort by.
"uploadedAt"Value in
- "filename"
- "fileSize"
- "tokenCount"
- "chunkCount"
- "uploadedAt"
- "processingStatus"
- "enabled"
Sort direction.
"desc"Value in
- "asc"
- "desc"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/knowledge/string/documents?workspaceId=string"{ "success": true, "data": { "documents": [ { "id": "doc_abc123", "knowledgeBaseId": "kb_abc123", "filename": "Getting Started.pdf", "fileSize": 204800, "mimeType": "application/pdf", "processingStatus": "completed", "chunkCount": 12, "tokenCount": 3500, "enabled": true, "createdAt": "2026-01-15T10:30:00Z" } ], "pagination": { "total": 1, "limit": 50, "offset": 0, "hasMore": false } }}