Knowledge basesDocuments
Knowledge base documents
List knowledge base documents
GET
The documents of a knowledge base, newest first, with their processing status.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
knowledge_base_id*stringThe knowledge base.
Format
uuidlimit?LimitMaximum number of items returned, at most 200
Range
1 <= value <= 200Default
50offset?OffsetNumber of items skipped before the first one returned
Range
0 <= valueDefault
0region*RegionsRegion of the knowledge base: besg (Europe) or usnv (United States)
Value in
"besg""usnv"OK
application/json- response
data*array<>has_more*Has MoreWhether more items follow this page: request the next one with offset + limit
limit*Limitoffset*Offsetcurl -X GET 'https://api.stacksync.com/v1/workspaces/0/knowledge-bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents?region=besg'{ "data": [ { "document_id": "<document_id>", "knowledge_base_id": "<knowledge_base_id>", "title": "<title>", "mime_type": "<mime_type>", "file_id": "<file_id>", "processing_status": "<processing_status>", "processing_error": "<processing_error>", "chunk_count": 0, "created_time": "2027-01-15T09:00:00Z" } ], "has_more": false, "limit": 0, "offset": 0}