---
title: "Get Custom Code"
method: GET
path: "/api/v1/configurations/{configuration_id}/custom-codes/{id}"
tags: ["configurations"]
---

# Get Custom Code

`GET /api/v1/configurations/{configuration_id}/custom-codes/{id}`

## Request

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

Fetch a custom code by its ID.

Args:
    configuration_id (UUID): The associated configuration ID
    id (UUID): The custom code ID
    user (DbUser): The logged-in user
    db (AsyncDatabaseConnection): The database connection

Raises:
    HTTPException: 404 if configuration can't be found

Returns:
    CustomCodeResponse: The custom code response object

## Path parameters

- `configuration_id` string, uuid, required
- `id` string, uuid, required

## Response `200`

Successful Response

- CustomCodeResponse: Custom code object to return to the client.
  - `id` string, uuid, required
  - `display` string, required
  - `code` string, required
  - `system_id` string, uuid, required
  - `system_name` string, 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/custom-codes/:id/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)
