---
title: "List code collections"
method: GET
path: "/api/v3/workspaces/{workspace}/code-collections/"
---

# List code collections

`GET /api/v3/workspaces/{workspace}/code-collections/`

List code collections (repositories/branches) available in the workspace.

## Path parameters

- `workspace` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Paginated list of code collections

- CodeCollectionList
  - `count` integer
  - `next` string, nullable
  - `previous` string, nullable
  - `results` CodeCollection[]
    - `id` string
    - `name` string
    - `ref` string — Branch or ref
    - `repositoryUrl` string
    - `createdAt` string, date-time

---

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