---
title: "Get Tes Diff Details"
method: GET
path: "/api/v1/tes/"
tags: ["tes"]
---

# Get Tes Diff Details

`GET /api/v1/tes/`

## Request

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

Returns a list of all TES updates, ordered from newest to oldest.

Args:
    cur_version: Version to compare on.
    prev_version: Version to compare against. Potentially an empty string if we're in the "baseline" TES version
    db (AsyncDatabaseConnection): Database connection.

Returns:
    list[TesDiffResponse]: A bundle with a list of TesDiffResponse, including
        - The condition metadata across the versions
        - The number of added and removed codes

## Query parameters

- `cur_version` string, required
- `prev_version` string, required

## Response `200`

Successful Response

- TesDiffConditionDetailsResponse[]
  - `canonical_url` string, required
  - `display_name` string, required
  - `added_code_total` integer, required
  - `removed_code_total` integer, required
  - `is_new` boolean, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-06** `c0b1c2f4df0b`: 4 breaking, 2 info
  - added the new required `query` request parameter `cur_version`
  - added the new required `query` request parameter `prev_version`
  - the response's body type changed from `object` to `array` for status `200`
  - removed the required property `tes_updates` from the response with the `200` status
  - …2 more
- **2026-07-09** `54404c2e2d35`: 2 info
  - api tag `tes` added
  - api tag `tes_updates` removed
- **2026-07-08** `dd7a4526063d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cdcgov/apis/dibbs-ecr-refiner/changes/api/v1/tes/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)
