Skip to main content

list

client.workspace.list(): Promise<Workspace[]>

Lists all available workspaces for the current user.

Returns every workspace the user has access to, including their personal workspaces and any shared workspaces. Useful for workspace browsing and selection UIs.

Parameters

No parameters.

Returns

Promise<Workspace[]> — A promise that resolves to an array of Workspace objects

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.workspace.list();
console.log(result);