---
title: "Query metrics (POST)"
method: POST
path: "/metric"
tags: ["Metrics"]
---

# Query metrics (POST)

`POST /metric`

## Request

- Base URL: `https://api.lytics.io/v2`
- URL: `https://api.lytics.io/v2/metric`
- Auth: API key in header `Authorization`

Query one or more metrics by posting a JSON array of metric requests. The Metric API provides access to time series data for segments, streams, experiences, and other Lytics resources.

## Query parameters

- `account_id` string

## Request body `*/*`

- ModelsMetricRequest[]
  - `aggregation` string
  - `dimension` string
  - `dimension_id` string
  - `dimension_type` string
  - `end_date` string
  - `include_empty_rows` boolean
  - `include_sum_of_buckets` boolean
  - `interval` string
  - `name` string
  - `range` string
  - `refresh_cache` boolean
  - `round_dates` boolean
  - `smooth` boolean
  - `start_date` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

## Changes

- **2026-11-03** `d8e975057aec`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lytics/apis/lytics-api/changes/metric/post.md)

---

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