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

# Provider Latency History

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

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/api/v1/metrics/provider-latency/history`
- 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

---

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