---
title: "List workspaces"
method: GET
path: "/api/repos/{namespace}/{repo_name}/workspaces"
tags: ["Workspaces"]
---

# List workspaces

`GET /api/repos/{namespace}/{repo_name}/workspaces`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/workspaces/get.ts> (a function with typed inputs; its response is checked against the schema)

List workspaces in the repository

## Path parameters

- `namespace` string, required
- `repo_name` string, required
- `name` string, nullable, required

## Response `200`

List of workspaces

- ListWorkspaceResponseView
  - `oxen_version` string, nullable
  - `status` string, required
  - `status_message` string, required
  - `workspaces` WorkspaceResponse[], required
    - `commit` Commit, required
      - `author` string, required
      - `email` string, required
      - `id` string, required
      - `message` string, required
      - `parent_ids` string[], required
      - `timestamp` string, date-time, required
    - `created_at` string, date-time, nullable: `None` for a workspace created before the server recorded creation time.
    - `id` string, required
    - `name` string, nullable

## Other responses

- `404`: Repository not found

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
