---
title: "List workspaces visible to the caller's tenant"
method: GET
path: "/api/workspaces"
tags: ["Workspaces"]
---

# List workspaces visible to the caller's tenant

`GET /api/workspaces`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/workspaces`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Query parameters

- `includeArchived` 'true' | 'false'

## Response `200`

Workspace list, always including the shared GLOBAL workspace.

- Workspace[]
  - `id` integer
  - `slug` string
  - `name` string
  - `tenantId` integer, nullable
  - `createdAt` string, date-time
  - `archivedAt` string, date-time, nullable
  - `archived` boolean
  - `contextCount` integer

## Other responses

- `401`: Missing or invalid credentials.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
