Generate experiences with Puck AI
Read docs
CloudAPI referencecloud-clientServer APIsassets.folders.list

assets.folders.list

Puck Assets is in early access. Request access.

Find and list folders, sorted by name.

await puck.assets.folders.list();

Returns an AssetFolderList containing the folders, and pagination metadata.

Args

ParamExampleTypeStatus
params{ query: "brand" }Object-
options{ auth: {} }Object-

params

Pagination and filtering options for listing folders. Defaults to the first 50.

ParamExampleTypeStatus
queryquery: "brand"String-
offsetoffset: 50Number-
limitlimit: 20Number-

Optional filter params

query

Find folders that contain the specified text in their names.

Optional paging params

offset

Skip a number of folders in the resulting list after filtering and sorting, from the start. Defaults to 0.

limit

Limit the number of folders returned in the resulting list after filtering, sorting, and skipping the offset, up to 100. Defaults to 50.

options

Set the request options for this call.