List Assets
List folders and assets for a workspace in a single response. Use parent_id to browse a specific folder, or filters like title, status, and playlist_id to search assets.
- Type: stringworkspace
_id requiredVideo workspace id.
- Type: string enumtype
Return
folders,videos, orall. Default isall.values- folders
- videos
- all
- Type: stringparent
_id Parent folder id. Send
nullto browse the root level. - Type: stringtitle
Search folders or assets by title or description.
- Type: stringstatus
Comma-separated asset status values.
- Type: stringtag
Comma-separated asset tags.
- Type: stringplaylist
_id Filter assets to a playlist.
- Type: stringstart
_date Asset created_at lower bound.
- Type: stringend
_date Asset created_at upper bound.
- Type: numbermin
_duration Minimum asset duration in seconds.
- Type: numbermax
_duration Maximum asset duration in seconds.
- Type: string enumsort
By Sort assets by a supported field.
values- title
- duration
- uploaded
_at - created
_at
- Type: string enumorder
By Asset sort order.
values- asc
- desc
- Type: string enumsearch
Index Search index used for asset title search.
values- search
_index _for _asset _list - cms
-search - cms
-search -v2
- Type: integeroffset
Offset for paginated results.
- Type: integersizemax:100
Page size. Maximum 100.
- Type: string enumsigned
_token Whether URLs should be pre-signed in the API response. Possible values:
trueandfalse. Default isfalse.values- true
- false
- application/json
- application/json
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const videoAsset = await client.videoAssets.list('workspaceId', {
type: 'all',
offset: 0,
size: 20,
signed_token: 'false',
});
console.log(videoAsset);
{
"folders": [
{
"id": "67e4f01d403562dbea6542d4",
"name": "Course Assets",
"video_source_id": "67e4ece9403562dbea65425f",
"parent_id": null,
"path": [],
"path_names": [],
"depth": 0,
"subdirectory_count": 2,
"asset_count": 12,
"created_at": "2026-03-18T10:00:00.000Z",
"updated_at": "2026-03-18T10:15:00.000Z"
}
],
"all_assets": [
{
"asset_id": "67e4f2b4403562dbea654301",
"status": "ready",
"title": "Lesson 1",
"folder": "Course Assets"
}
],
"folder_count": 1,
"asset_count": 1,
"total_count": 2,
"current_offset": 2
}
