---
title: "Provider Latency History"
method: GET
path: "/api/v1/metrics/provider-latency/history"
---

# Provider Latency History

`GET /api/v1/metrics/provider-latency/history`

## Request

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

Return raw latency samples for time-series charting.

Each sample has: ``timestamp``, ``provider``, ``model``, ``latency_ms``.
Samples are ordered chronologically. Use ``hours`` to control the lookback
window (default 24h, max 7 days).

## Query parameters

- `provider` string, nullable: Filter by provider name
- `model` string, nullable: Filter by model identifier
- `hours` integer: Hours of history to return (1-168)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-07-26** `2a1299ef19fa`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/api/v1/metrics/provider-latency/history/get.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) - [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) - [OpenAPI document](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/revisions/f8d88a977583?raw)
