Skip to main content
GET
List an agent's documents

Authorizations

Authorization
string
header
required

Workspace API key (wk_). GET endpoints require the Workspace read API scope, POST endpoints the Workspace write API scope.

Path Parameters

agentId
string
required

The agent id.

Query Parameters

excludeContent
boolean

If true, omit textContent and data from each document, returning metadata only. Defaults to false.

Response

Success. Empty result sets are also 200.

Folders are included as entries with isFolder: true; nesting is expressed via parentFolderId.

documents
object[]
required