---
title: "List the caller's workspaces"
description: Returns every workspace the caller has an active membership in.
api_method: GET
api_path: "/v1/workspaces"
canonical_url: https://wiblo.app/docs/developers/api/workspaces/list-workspaces
last_updated: 2026-08-25T13:42:39+02:00
md_url: https://wiblo.app/docs/developers/api/workspaces/list-workspaces.md
---

# List the caller's workspaces

`GET /v1/workspaces`

Returns every workspace the caller has an active membership in. By default only active workspaces are returned. With `?include=archived`, owners additionally see their own archived workspaces (so the dashboard can render the unarchive control). Admins and members never see archived workspaces — RLS enforces this regardless of the query param. No pagination: the per-user 50-active-workspace cap bounds the payload. Per-user rate-limited at 60/60s.

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `include` | `"archived"` | No | When set to `archived`, owners also see their archived workspaces. Ignored for admins/members (RLS hides archived workspaces from them). |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/workspaces \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, listWorkspaces } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await listWorkspaces({
  client: sdk,
})
```

## Responses

**`200`** — The caller's workspaces. Returns `WorkspaceListResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaces` | `array<WorkspaceListItem>` | Yes |  |

**`401`** — No valid Supabase session cookie was present. Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.

### The WorkspaceListItem object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `slug` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `avatar_url` | `string \| null` | Yes |  |
| `accent_hue` | `"red" \| "coral" \| "orange" \| "green" \| "teal" \| "blue" \| ...` | Yes | Stored accent key; `null` means the tile derives its colour from the id hash. |
| `member_id` | `string` | Yes |  |
| `role` | `"owner" \| "admin" \| "member"` | Yes |  |
| `archived_at` | `string \| null` | Yes |  |
| `persona` | `WorkspacePersona` | Yes |  |

### The WorkspacePersona object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes |  |
| `email` | `string \| null` | Yes |  |
| `avatar_url` | `string \| null` | Yes |  |
| `accent_hue` | `"red" \| "coral" \| "orange" \| "green" \| "teal" \| "blue" \| ...` | Yes |  |
