## List accessible workspaces

`$ flora workspaces list`

**get** `/workspaces`

Returns the workspaces available to the authenticated public API key, including each workspace's public ID, name, creation timestamp, and caller role.

### Returns

- `WorkspaceListResponse: object { workspaces }`

  - `workspaces: array of object { created_at, name, role, workspace_id }`

    - `created_at: number`

    - `name: string`

      Workspace name

    - `role: string`

      Workspace role

    - `workspace_id: string`

      Workspace identifier

### Example

```cli
flora workspaces list \
  --api-key 'My API Key'
```

#### Response

```json
{
  "workspaces": [
    {
      "created_at": 0,
      "name": "Brand Studio",
      "role": "role",
      "workspace_id": "ws_abc123"
    }
  ]
}
```
