List documents with pagination and filtering
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Comma-separated list of additional fields to include in the response:
_count - Adds favorite and view count metrics
labels - Includes associated document labels
includeDeleted - Include deleted documents
onlyFavorites - Must be used with userId. Include only documents that the specified user has favorited.
onlySharedWithMe - Returns only documents explicitly shared with the specified user via documents permissions. Excludes documents owned by the user. Cannot be combined with ownerId or path.
Additionally, depending on the type of API key being used:
userId parameteruserId from the tokenComma-separated list of labels to filter results. For example: finance,marketing
ID of the folder to filter results. Returns only documents within the specified folder.
Number of records per page
1 <= x <= 100Field to sort by:
favorites - Sort by the number of favoritesname - Sort by document nameupdatedAt - Sort by last update timevisits - Sort by view countfavorites, name, updatedAt, visits Sort direction (asc for ascending, desc for descending)
asc, desc Cursor for pagination. Used with sortField/sortDirection for relative positioning.
The ID of a standard or embed user to filter results, returning only documents the specified user can view based on their permissions.
If include=onlyFavorites is specified:
userId will be automatically inferred from the tokenID of the user who created the document(s), returning only documents that the specified user created.