# Workspaces

## List accessible workspaces

**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

- `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

```http
curl https://app.flora.ai/api/v1/workspaces \
    -H "Authorization: Bearer $FLORA_API_KEY"
```

#### Response

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

## Domain Types

### Workspace List Response

- `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
