API reference

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

  • idstringrequired
  • objectstringrequired
  • namestringrequired
  • parentstring | nullrequired
  • livemodebooleanrequired
  • metadataobjectrequired

    Arbitrary key/value map; merge-on-write (§6).

  • trashed_attimestamprequired
  • created_attimestamprequired
  • updated_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

  • parentstringoptional
  • trashedstringoptional

    Possible 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 chars
  • parent_idstring | nulloptional

Returns

  • 201The created folder.

Failures use the standard error envelope with a closed set of codes.

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

Returns

  • 200The folder.

Failures use the standard error envelope with a closed set of codes.

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 chars
  • parent_idstring | nulloptional

    Move under this folder, or null for root.

  • trashedbooleanoptional

    Set false to restore.

Returns

  • 200The updated folder.

Failures use the standard error envelope with a closed set of codes.

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

  • permanentstringoptional

    Possible 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.