---
title: "Quality detector counts for the workspace's price models"
method: GET
path: "/v1/price-baseline/data/quality"
tags: ["Contract Pricing"]
---

# Quality detector counts for the workspace's price models

`GET /v1/price-baseline/data/quality`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/price-baseline/data/quality`
- Auth: HTTP bearer

Counts the audit failure classes per workspace from the stored models, register, invoice checks and reviews, against the latest stored snapshot of an earlier day. Without `fresh` the latest stored snapshot answers (one is computed when none is stored). `regressions` lists detectors of severity `block` whose count rose, and a sell plan that moved beyond the configured share; `warnings` lists risen `watch` detectors. The response is not wrapped in `data`.

## Query parameters

- `year` integer
- `fresh` '1' | 'true'

## Response `200`

The quality view.

- PriceBaselineQualityView
  - `current` PriceBaselineQualitySnapshot
    - `version` 1
    - `generated_at` string, date-time
    - `year` integer
    - `engine_version` integer
    - `plan` object
      - `sell_net` number
      - `sell_rows` integer
      - `complete_rows` integer
      - `currency` string, nullable
    - `detectors` object[]
      - `id` string: Stable detector id, for example `plan_row_outlier`, `duplicate_rows`, `unit_conflict_binding`.
      - `severity` 'block' | 'watch'
      - `title` string
      - `count` integer, nullable: Rows, chains, bindings, lines or invoices affected; null when the inputs to count it were not available.
      - `amount` number, nullable
      - `samples` string[]: A few ids or keys to start from.
      - `share` number, nullable: For a share detector: count over everything it was counted among.
  - `previous` intersection, nullable: The latest stored snapshot of the year from an earlier day; null before the first one.
    - object
      - `taken_on` string, date
    - [`PriceBaselineQualitySnapshot`](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e/schema?at=%2Fcomponents%2Fschemas%2FPriceBaselineQualitySnapshot)
  - `regressions` PriceBaselineQualityChange[]
    - `id` string: Detector id, or `plan_move`.
    - `severity` 'block' | 'watch'
    - `before` number, nullable
    - `after` number, nullable
    - `detail` string
  - `warnings` PriceBaselineQualityChange[]
    - `id` string: Detector id, or `plan_move`.
    - `severity` 'block' | 'watch'
    - `before` number, nullable
    - `after` number, nullable
    - `detail` string
  - `alerts` string[]

## Other responses

- `400`: The request is invalid.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/price-baseline/data/quality/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
