---
title: "List workspaces"
method: GET
path: "/v1/workspaces"
tags: ["Workspaces"]
---

# List workspaces

`GET /v1/workspaces`

List all workspaces the authenticated user belongs to, with Creative Units balance details.

## Query parameters

- `limit` integer — Maximum number of results to return.
- `cursor` string, nullable — Cursor from a previous response to get the next page.

## Response `200`

Successful Response

- ListWorkspacesOutput
  - `workspaces` WorkspaceInfo[], required — All workspaces the authenticated user belongs to, ordered by most recently active first.
    - `workspace_id` string, uuid, required — The workspace's unique identifier.
    - `slug` string, required — The workspace slug (its representation in the app URL).
    - `name` string, required — The workspace display name.
    - `balance_creative_units` number, required — Total Creative Units balance before reservations.
    - `reserved_creative_units` number, required — Creative Units reserved by in-progress generations.
    - `available_creative_units` number, required — Usable balance (balance minus reserved). Can be negative.
    - `last_active_at` string, date-time, nullable, required — When the current user was last active in this workspace.
  - `pagination` PaginationOutput, required
    - `next_cursor` string, nullable — Cursor to use to get the next page
    - `has_more_results` boolean, required — If there are more results to page through
    - `total_count` integer, nullable — Total number of results matching the query

## Other responses

- `401` — Unauthenticated — missing or invalid Bearer token.
- `403` — Forbidden — insufficient permissions, or the access token lacks the scope the operation requires.
- `404` — Resource not found.
- `409` — The request with this `Idempotency-Key` is still running — retry after the number of seconds in `Retry-After`.
- `422` — Invalid input parameters, or an `Idempotency-Key` reused for a different request.
- `429` — Rate limited — retry after the number of seconds in `Retry-After`.
- `500` — Internal server error.

---

[API](https://skmtc.dev/layer/apis/layer-rest-api.md) · [All operations](https://skmtc.dev/layer/apis/layer-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layer/layer-rest-api/revisions/fafc779f9ba2/schema)
