Retrieve a paginated list of folders within an organization. Supports filtering, sorting, and cursor-based pagination.
The folders endpoint behaves differently based on the type of API key used to authenticate the request:
ownerId. Must provide ownerId for scope=restricted.scope=organization - Returns all organization-shared folders the user can accessscope=restricted - Returns only the user’s own restricted folders. An ownerId is optional; if not provided, it will be auto-inferred and the API will return only the folders belonging to PAT owner.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:
_count - Include document and favorite countslabels - Include folder labelsFilter folders by path. Wildcards are supported and must appear at the end of the path:
* - Include direct children only (e.g., blob-sales/*)** - Include all descendants recursively (e.g., blob-sales/**)Comma-separated list of labels to filter by.
Scope of folders to retrieve.
When set to restricted, the ownerId parameter behavior depends on the API key type:
ownerId is requiredownerId is optional and auto-inferred to the token ownerorganization, restricted Field to sort by:
favorites - Sort by number of favoritesname - Sort by folder namepath - Sort by folder pathfavorites, name, path Sort direction.
asc, desc Cursor for pagination positioning.
Number of items per page.
x >= 1UUID of organization membership.
How the API behaves depends on the type of API key used to authenticate the request and the current scope value.
Personal Access Tokens (PAT)
| Scope | ownerId | Behavior |
|---|---|---|
organization | Not provided | All organization-shared folders user has permission to access |
organization | own ID | Own organization folders only |
restricted | Not provided | Infers owner's ID, returns own restricted folders |
restricted | Own ID | Own restricted folders |
restricted | Other's ID | 403 Forbidden |
Organization API key
| Scope | ownerId | Behavior |
|---|---|---|
organization | Not provided | All organization folders |
organization | Any ID | That user's organization folders |
restricted | Not provided | 400 Bad Request (ownerId required) |
restricted | Any ID | That user's restricted folders |