Knowledge base
List knowledge-base items
GET
Returns the files and folders directly inside a folder, folders first. Each file includes its indexing result in index_status.
Requires the agents:read scope.
apiKeyheader
X-API-Key<token>Your API key, from Settings → API access in the dashboard.
folder?stringFolder path such as docs/prices. Empty for the top level.
Default
""limit?integerRange
1 <= value <= 500Default
100offset?integerRows to skip. Stop when offset + limit >= total.
Range
0 <= valueDefault
0A page of items.
application/json- response
items?array<>total?integerlimit?integeroffset?integercurl -X GET "https://example.com/knowledge-base/items"{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "type": "file", "mime_type": "string", "size_bytes": 0, "path": "string", "parent_path": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "index_status": "queued", "index_error": "string", "index_chunks": 0, "index_facts": 0, "index_updated_at": "2019-08-24T14:15:22Z" } ], "total": 0, "limit": 0, "offset": 0}