---
title: "Submitting a Metric"
method: POST
path: "/metrics"
---

# Submitting a Metric

`POST /metrics`

## Request

- Base URL: `https://metrics.telemetrytv.com`
- URL: `https://metrics.telemetrytv.com/metrics`
- Auth: API key in header `Authorization`

This endpoint will update the metrics sent to it which will update in real time through TelemetryTV's display applications (notably the Boards).

## Request body

- object
  - `key` string, required: The key of the metric to update
  - `bucket_size` integer: Size of the bucket, in seconds
  - `range` integer: The number of buckets to keep
  - `timestamp` string, date-time: UNIX epoch timestamp
  - `folder` string: The name of the folder

## Response `200`

200

- object
  - `account_id` string
  - `bucket_size` integer
  - `count` integer
  - `created_at` number
  - `folder_id` string
  - `id` string
  - `kind` string
  - `max` integer
  - `metric` string
  - `min` integer
  - `range` integer
  - `real_timestamp` number
  - `source` string
  - `sum` integer
  - `timestamp` number
  - `updated_at` number
  - `value` integer

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/telemetrytv/apis/metrics-api.md) - [All operations](https://skmtc.dev/telemetrytv/apis/metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/telemetrytv/apis/metrics-api/revisions/13388643105a?raw)
