Method
GET /v1/gallery/folders
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)curl "https://api.voyantcloud.com/v1/gallery/folders" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"data": [
{
"id": "11111111-1111-1111-1111-111111111111",
"workspaceId": "ws_abc",
"name": "Marketing",
"parentId": null,
"path": "Marketing",
"createdAt": "2025-01-05T12:00:00.000Z",
"updatedAt": "2025-01-05T12:00:00.000Z"
},
{
"id": "22222222-2222-2222-2222-222222222222",
"workspaceId": "ws_abc",
"name": "Campaigns",
"parentId": "11111111-1111-1111-1111-111111111111",
"path": "Marketing/Campaigns",
"createdAt": "2025-02-01T08:00:00.000Z",
"updatedAt": "2025-02-01T08:00:00.000Z"
}
]
}
Retrieve all gallery folders for the current workspace.
GET /v1/gallery/folders
Authorization: Bearer YOUR_API_KEY)curl "https://api.voyantcloud.com/v1/gallery/folders" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"data": [
{
"id": "11111111-1111-1111-1111-111111111111",
"workspaceId": "ws_abc",
"name": "Marketing",
"parentId": null,
"path": "Marketing",
"createdAt": "2025-01-05T12:00:00.000Z",
"updatedAt": "2025-01-05T12:00:00.000Z"
},
{
"id": "22222222-2222-2222-2222-222222222222",
"workspaceId": "ws_abc",
"name": "Campaigns",
"parentId": "11111111-1111-1111-1111-111111111111",
"path": "Marketing/Campaigns",
"createdAt": "2025-02-01T08:00:00.000Z",
"updatedAt": "2025-02-01T08:00:00.000Z"
}
]
}
parentId and path to build a tree structure on the client.