curl -X GET "https://api.example.com/api/knowledge/documents?projectId=proj_123&status=completed&limit=20&offset=0" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "success": true, "documents": [ { "id": "doc_abc123", "projectId": "proj_123", "fileName": "product-guide.pdf", "fileType": "pdf", "sourceType": "upload", "status": "completed", "chunkCount": 45, "createdAt": "2026-01-15T10:30:00Z", "updatedAt": "2026-01-15T10:35:00Z" }, { "id": "doc_def456", "projectId": "proj_123", "fileName": "api-docs.md", "fileType": "markdown", "sourceType": "url", "status": "completed", "chunkCount": 28, "createdAt": "2026-01-14T14:20:00Z", "updatedAt": "2026-01-14T14:22:00Z" } ], "total": 42, "hasMore": true, "nextOffset": 20 }
Retrieves all documents for a project with pagination and filtering
pending
processing
completed
failed
Show Document Object