---
title: "Get Codes"
method: GET
path: "/api/v1/configurations/{configuration_id}/codes"
tags: ["configurations"]
---

# Get Codes

`GET /api/v1/configurations/{configuration_id}/codes`

## Request

- The document declares no server URL.
- Auth: none declared

Fetches all codes associated with a configuration.

Args:
    configuration_id (UUID): ID of the configuration to update
    filters (FilterInput): Filter input coming from the client
    cursor (str | None): The cursor for the page to start from
    user (DbUser): The logged-in user
    logger (Logger): The standard logger
    db (AsyncDatabaseConnection): Database connection

## Path parameters

- `configuration_id` string, uuid, required

## Query parameters

- `cursor` string, nullable
- `search` string, nullable
- `code_systems` string[]
- `sources` string[]
- `statuses` string[]

## Response `200`

Successful Response

- CodesResponse: Codes and metadata to return to the client.
  - `next_cursor` string, nullable, required
  - `codes` CodeResponse[], required
    - `id` string, uuid, required
    - `condition_id` string, uuid, nullable, required
    - `source_display_names` string[], required
    - `code` string, required
    - `display_name` string, required
    - `system_id` string, uuid, required
    - `system_display_name` string, required
    - `status` 'Included' | 'Excluded', required
    - `is_custom` boolean, required
    - `is_trigger_code` boolean, required
  - `codes_limit` CodesLimitResponse, required: Utility class to help Orval ship these values to the frontend.
    - `codes_limit` 100

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-23** `c710294a0d33`: 3 breaking, 3 info
  - removed the required property `codes/items/description` from the response with the `200` status
  - removed the required property `codes/items/source` from the response with the `200` status
  - removed the required property `codes/items/system_name` from the response with the `200` status
  - added the required property `codes/items/display_name` to the response with the `200` status
  - …2 more
- **2026-09-03** `17faf3275ffc`: 1 info
  - added the required property `codes_limit` to the response with the `200` status
- **2026-09-03** `2fa46e0ba93e`: 1 breaking, 1 info
  - removed the required property `codes/items/is_primary_condition_rsg` from the response with the `200` status
  - added the required property `codes/items/is_trigger_code` to the response with the `200` status
- **2026-08-26** `f7491a7c8bb2`: 1 info
  - added the required property `codes/items/is_primary_condition_rsg` to the response with the `200` status
- **2026-08-21** `d1b355d7ffb3`: 1 breaking
  - the `codes/items/source` response's property type changed from `string` to `array` for status `200`

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/changes/api/v1/configurations/:configuration_id/codes/get.md)

---

[API](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner.md) - [All operations](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/llms.txt) - [OpenAPI document](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/revisions/7312cd4b44ac?raw)
