---
title: "Get Metric"
description: "How to call Get Metric (GET /api/metrics/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/get_metric"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_metric"
operationId: "get_metric"
method: "GET"
endpoint: "https://a.klaviyo.com/api/metrics/{id}"
authentication: "privateKey"
scopes: ["metrics:read"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"include":["flow-triggers"],"fields":{"flow":["name","status","archived","created","updated","trigger_type"],"metric":["name","created","updated","integration"]}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/metrics/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_metrics.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_metric_property.md","https://developers.klaviyo.com/en/v2025-01-15/reference/query_metric_aggregates.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_flows_triggered_by_metric.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_ids_for_flows_triggered_by_metric.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_properties_for_metric.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_property_ids_for_metric.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_metric_for_metric_property.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_metric_id_for_metric_property.md"]
---

# Get Metric

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/get_metric

```http
GET https://a.klaviyo.com/api/metrics/{id}
```

Get a metric with the given metric ID.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `metrics:read`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/metrics/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15'
```

## Path parameters

- `id` (string, required): Metric ID

## Query parameters

- `fields[flow]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `name`, `status`, `archived`, `created`, `updated`, `trigger_type`
- `fields[metric]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `name`, `created`, `updated`, `integration`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `flow-triggers`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `relationships` (object)
    - `flow-triggers` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `type` (string, required): Allowed values: `metric`
  - `id` (string, required): The Metric ID
  - `attributes` (object, required)
    - `name` (string, nullable): The name of the metric
    - `created` (string, nullable): Creation time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
    - `updated` (string, nullable): Last updated time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)
    - `integration` (object, nullable): The integration associated with the event
  - `links` (object, required)
    - `self` (string<uri>, required)
- `included` (object[])
  - `type` (string, required): Allowed values: `flow`
  - `id` (string, required)
  - `attributes` (object, required)
    - `name` (string, nullable)
    - `status` (string, nullable)
    - `archived` (boolean, nullable)
    - `created` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): Example: `2022-11-08T00:00:00+00:00`
    - `trigger_type` (string, nullable): Corresponds to the object which triggered the flow. Allowed values: `Added to List`, `Date Based`, `Low Inventory`, `Metric`, `Price Drop`, `Unconfigured`
  - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "relationships": {
      "flow-triggers": {
        "data": [
          {
            "type": "flow",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "type": "metric",
    "id": "string",
    "attributes": {
      "name": "string",
      "created": "string",
      "updated": "string",
      "integration": {}
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "included": [
    {
      "type": "flow",
      "id": "string",
      "attributes": {
        "name": "string",
        "status": "string",
        "archived": true,
        "created": "2022-11-08T00:00:00+00:00",
        "updated": "2022-11-08T00:00:00+00:00",
        "trigger_type": "Added to List"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
