---
title: "Retrieve metrics"
method: GET
path: "/_api/connections/metrics"
tags: ["Connections"]
---

# Retrieve metrics

`GET /_api/connections/metrics`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/connections/metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve connections metrics.

## Query parameters

- `start` string, required
- `end` string, required
- `step` string

## Response `200`

Successfully fetched the metrics for connections.

- MetricsResponse
  - `error` boolean, required
  - `code` integer
  - `data` object[]
    - `metric` string: Metric name.
    - `data` object[]
      - `timestamp` integer
      - `value` string

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed to authenticate the request.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
