Skip to main content
Return documents under a workspace, optionally scoped to a single KB via the kb_id query parameter.

Endpoint

Authentication

Authorization: Bearer <jwt> or X-API-Key <sk_...>. Minimum role: viewer.

Path parameters

string
required
Workspace id.

Query parameters

string
Only return documents in this KB.

Response

The response is an array; each element is a document:
string
Document id.
string
Owning KB id.
string
Owning workspace id.
string
File name.
string
Storage path.
string
MIME type.
string
Parse status (parsing / parsed / failed).
string
Upload time (RFC3339).

Example