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

# Get code collection

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

Retrieve code collection metadata and ref.

## Path parameters

- `workspace` string, required
- `codeCollectionId` string, required

## Response `200`

Code collection details

- 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)
