List accessible workspaces
GET
/workspaces
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const page = await client.workspaces.list();console.log(page);curl -X GET 'https://app.flora.ai/api/v1/workspaces' \ -H 'Authorization: Bearer $FLORA_API_KEY'Returns the workspaces available to the authenticated public API key, including each workspace’s public ID, name, creation timestamp, and caller role.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Accessible workspaces returned.
Media type application/json
object
workspaces
required
Array<object>
object
workspace_id
required
Workspace identifier
string
name
required
Workspace name
string
role
required
Workspace role
string
organization_id
Identifier of the organization that owns this workspace
string
organization_name
Display name of the organization that owns this workspace
string
Example
{ "workspaces": [ { "workspace_id": "ws_abc123", "name": "Brand Studio", "organization_id": "org_abc123", "organization_name": "Acme Inc" } ]}