---
title: "Get service metrics history"
method: GET
path: "/v1/metrics/services/{key}/history"
tags: ["Metrics"]
---

# Get service metrics history

`GET /v1/metrics/services/{key}/history`

## Request

- Base URL: `http://kubefwd.internal/api`
- URL: `http://kubefwd.internal/api/v1/metrics/services/{key}/history`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/txn2/apis/kubefwd-api/docs/v1/metrics/services/:key/history/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns historical traffic data for a service

## Path parameters

- `key` string, required

## Response `200`

Metrics history

- Response
  - `success` boolean
  - `data` object
  - `error` ErrorInfo
    - `code` string
    - `message` string
  - `meta` MetaInfo
    - `count` integer
    - `timestamp` string, date-time

## Other responses

- `401`: Missing or invalid API key

## Changes

- **2026-07-17** `e4f8bfb653cf`: 1 info
  - added the non-success response with the status `401`
- **2025-12-29** `f4c31924c89c`: 1 info
  - removed the non-success response with the status `401`

[Operation history](https://skmtc.dev/txn2/apis/kubefwd-api/changes/v1/metrics/services/:key/history/get.md)

---

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