List documents
List documents with pagination and filtering
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Query Parameters
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 withuserId. 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 withownerIdorpath.Additionally, depending on the type of API key being used:
- Organization API keys require the
userIdparameter - Personal Access Tokens automatically infer the
userIdfrom the token
- Organization API keys require the
Comma-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 count
favorites, 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:
- And using an Organization API key, this parameter is required
- And using a Personal Access Token, the
userIdwill be automatically inferred from the token
ID of the user who created the document(s), returning only documents that the specified user created.