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, caller role, and a link that opens FLORA in that workspace.
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
app_url
Link that opens FLORA in this workspace. Stable, so it can be shared; the person opening it must be a member. Absent for a viewer who is not a member and reaches the workspace through a shared item.
string format: uri
Example
{ "workspaces": [ { "workspace_id": "ws_abc123", "name": "Brand Studio", "organization_id": "org_abc123", "organization_name": "Acme Inc" } ]}