Folders
Folders organize decks inside an org. Grants on a folder cascade to everything in it, so a folder is also the unit of team access.
Related guides: Sharing & permissions
Attributes
idstringrequiredobjectstringrequirednamestringrequiredparentstring | nullrequiredlivemodebooleanrequiredmetadataobjectrequiredArbitrary key/value map; merge-on-write (§6).
trashed_attimestamprequiredcreated_attimestamprequiredupdated_attimestamprequired
List folders
GET/v1/folders
Lists folders at one level: children of `parent` (a folder id), or the root by default. `trashed=true` lists trashed folders.
Requires an API key (bearer), scoped to the active org.
Query parameters
parentstringoptionaltrashedstringoptionalPossible values:
true,false
Returns
200Folders at this level.
Failures use the standard error envelope with a closed set of codes.
Create a folder
POST/v1/folders
Creates a folder, optionally under `parent_id` (omit/null for the root).
Requires an API key (bearer), scoped to the active org. Supports idempotency keys.
Body parameters
namestringoptionalmax 200 charsparent_idstring | nulloptional
Retrieve a folder
GET/v1/folders/{id}
Fetches a folder with its root→folder ancestry (for breadcrumbs).
Requires an API key (bearer), scoped to the active org.
Path parameters
idstringrequired
Update a folder
PATCH/v1/folders/{id}
Rename (`name`), move (`parent_id`), or restore (`trashed: false`). Moving into a descendant or exceeding max depth is rejected.
Requires an API key (bearer), scoped to the active org. Supports idempotency keys.
Path parameters
idstringrequired
Body parameters
namestringoptionalmax 200 charsparent_idstring | nulloptionalMove under this folder, or null for root.
trashedbooleanoptionalSet false to restore.
Trash or permanently delete a folder
DELETE/v1/folders/{id}
Trashes the folder and its subtree (restore with `PATCH { trashed: false }`). `?permanent=true` permanently deletes an already-trashed folder + its contents (irreversible).
Requires an API key (bearer), scoped to the active org. Supports idempotency keys.
Path parameters
idstringrequired
Query parameters
permanentstringoptionalPossible values:
true,false
Returns
200The trashed folder, or a deletion confirmation when `?permanent=true`.
Failures use the standard error envelope with a closed set of codes.