List project folders
GET
/workspaces/{workspaceId}/folders
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const page = await client.workspaces.folders.list({ workspaceId: '<workspaceId>',});console.log(page);curl -X GET 'https://app.flora.ai/api/v1/workspaces/<workspaceId>/folders' \ -H 'Authorization: Bearer $FLORA_API_KEY'Lists the workspace’s shared project folders in workspace order. Shared folders only — private folders are never returned, matching what POST /workspaces/{workspace_id}/folders will resolve or create. Use this to choose an existing folder before filing projects with POST /workspaces/{workspace_id}/folders/{folder_id}/projects.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
Workspace identifier
string
Workspace identifier
Responses
Section titled “ Responses ”Folders returned.
Media type application/json
object
folders
required
Array<object>
object
folder_id
required
Project folder identifier
string
name
required
Folder name
string
workspace_id
required
Workspace identifier
string
total_projects
required
Number of projects filed in this folder
integer
Example
{ "folders": [ { "folder_id": "fld_abc123", "name": "FLORA Agent", "workspace_id": "ws_abc123" } ]}