---
title: "Get Code Counts"
method: GET
path: "/api/v1/configurations/{configuration_id}/code-counts"
tags: ["configurations"]
---

# Get Code Counts

`GET /api/v1/configurations/{configuration_id}/code-counts`

## Request

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

Fetch code count information for a configuration.

Args:
    configuration_id (UUID): ID of the configuration to update
    user (DbUser): The logged-in user
    db (AsyncDatabaseConnection): Database connection

Raises:
    HTTPException: 404 if configuration can't be found
    HTTPException: 500 if code count metadata can't be fetched

Returns:
    CodeCountsResponse: Object containing code count info

## Path parameters

- `configuration_id` string, uuid, required

## Response `200`

Successful Response

- CodeCountsResponse: Code count information to return to the client.
  - `total_code_count` integer, required
  - `total_code_sets_count` integer, required
  - `total_excluded_codes_count` integer, required
  - `total_custom_codes_count` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-09** `fca481966403`: 1 info
  - endpoint added

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

---

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