Documents

List Documents

List accessible documents.

request.document_filters may include the following operators in addition to equality checks (which also match scalars inside JSON arrays): $and, $or, $nor, $not, $in, $nin, $exists, $regex, and $contains. Filters can be nested arbitrarily. Regex filters accept the optional i flag; $contains performs substring matches with optional case_sensitive overrides. Example:

{
  "$and": [
    {"department": "sales"},
    {"$or": [{"status": "approved"}, {"priority": {"$in": ["high", "urgent"]}}]}
  ]
}

Args: request: Request body containing filters and pagination auth: Authentication context folder_name: Optional folder to scope the operation to end_user_id: Optional end-user ID to scope the operation to

Returns: List[Document]: List of accessible documents

post/documents

Query parameters

string
OR
string[]
end_user_idstring nullable

Headers

authorizationstring

Request body

document_filtersobject nullable

Metadata filters for documents

skipinteger
limitinteger

Response

Successful Response

external_idstring
content_typestring required
filenamestring nullable
metadataobject
storage_infoobject
system_metadataobject
additional_metadataobject
chunk_idsstring[]
folder_namestring nullable
end_user_idstring nullable
app_idstring nullable

Changes