---
title: "Validation trends"
method: GET
path: "/api/qualitygate/trends"
tags: ["QualityGate"]
---

# Validation trends

`GET /api/qualitygate/trends`

## Request

- Base URL: `https://plith.ai`
- URL: `https://plith.ai/api/qualitygate/trends`
- Auth: none required

Returns daily pass/fail/warn counts, average scores, per-check-type pass rates, and insights. FREE — no credit deduction.

## Query parameters

- `days` integer
- `check_type` 'directive_compliance' | 'schema_validation' | 'code_syntax' | 'length' | 'tone' | 'factual_claims'

## Response `200`

Trend data

- object
  - `days` integer
  - `check_type_filter` string, nullable
  - `total_validations` integer
  - `daily` object[]
    - `date` string, date
    - `pass` integer
    - `warn` integer
    - `fail` integer
    - `total` integer
    - `avg_score` integer
    - `avg_issues` number
  - `overall` object
    - `pass` integer
    - `warn` integer
    - `fail` integer
    - `pass_rate_pct` integer, nullable
    - `avg_score` integer, nullable
    - `avg_issues_per_run` number, nullable
    - `override_count` integer
  - `by_check_type` object[]
    - `check_type` string
    - `pass` integer
    - `fail_warn` integer
    - `pass_rate_pct` integer
  - `insights` string[]
  - `cross_product` object
  - `request_id` string
  - `credits_used` integer
  - `credits_remaining` integer
  - `fallback_behavior` string

## Other responses

- `401`: Invalid or missing API key
- `500`: Internal server error

---

[API](https://skmtc.dev/plith/apis/plith-api.md) · [All operations](https://skmtc.dev/plith/apis/plith-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plith/apis/plith-api/revisions/4a03164b0d75?raw)
