---
title: "List versions for a codelist family"
method: GET
path: "/codelists/versions/{name}"
tags: ["Codelists"]
---

# List versions for a codelist family

`GET /codelists/versions/{name}`

## Path parameters

- `name` string, required

## Query parameters

- `agency` string
- `with_counts` boolean

## Response `200`

Version rows

- CodelistVersionsResponse
  - `status` 'success', required
  - `codelists` CodelistCatalogRow[], required
    - `id` integer
    - `idno` string
    - `agency` string
    - `name` string — SDMX maintainable id
    - `version` string
    - `title` string
    - `description` string
    - `status` 'draft' | 'active' | 'locked' | 'archived' — Catalogue codelist lifecycle status
    - `item_count` integer — Present when with_counts is enabled
    - `dsd_component_count` integer — Present when with_counts is enabled
    - `versions_count` integer — Present on collapsed family rows

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/worldbank/apis/metadata-editor-api.md) · [All operations](https://skmtc.net/worldbank/apis/metadata-editor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worldbank/metadata-editor-api/revisions/f4c8258bab5a/schema)
