---
title: "Get Custom Metrics"
description: "How to call Get Custom Metrics (GET /api/custom-metrics) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_custom_metrics"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_custom_metrics"
operationId: "get_custom_metrics"
method: "GET"
endpoint: "https://a.klaviyo.com/api/custom-metrics"
authentication: "privateKey"
scopes: ["metrics:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json"
jsonApi: {"include":["metrics"],"fields":{"custom-metric":["created","definition","definition.aggregation_method","definition.metric_groups","id","name","updated"],"metric":["created","id","integration","name","updated"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/metrics/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_custom_metric.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_custom_metric.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_custom_metric.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_custom_metric.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_metrics_for_custom_metric.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_metric_ids_for_custom_metric.md"]
---

# Get Custom Metrics

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_custom_metrics

```http
GET https://a.klaviyo.com/api/custom-metrics
```

Get all custom metrics in an account.

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `metrics:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json)

## Example request

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

## Query parameters

- `fields[custom-metric]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `created`, `definition`, `definition.aggregation_method`, `definition.metric_groups`, `id`, `name`, `updated`
- `fields[metric]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `created`, `id`, `integration`, `name`, `updated`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `metrics`

## Headers

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

## Responses

### 200: Success

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

- `data` (object[], required)
  - `type` (string, required): Allowed values: `custom-metric`
  - `id` (string, required): The ID of the custom metric Example: `925e385b52fb405715f3616c337cc65c`
  - `attributes` (object, required)
    - `name` (string, required): The name for this custom metric. Names must be unique across the account.         Attempting to create a metric with a duplicate name will return a 400 status code. Example: `My custom metric`
    - `created` (string<date-time>, required): The datetime when this custom metric was created. Example: `2025-04-15T00:00:00Z`
    - `updated` (string<date-time>, required): The datetime when this custom metric was updated. Example: `2025-04-15T00:00:00Z`
    - `definition` (object, required)
      - `aggregation_method` (string, required): Method of aggregation for custom metric measurements. If a metric has a `value` aggregation method, it will be treated as a revenue metric, such as a Placed Order metric. If a metric has a `count` aggregation method, it will only be able to report on conversions like an Active on Site metric.
         Allowed values: `count`, `value`
      - `metric_groups` (object[], required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json).
  - `relationships` (object)
    - `metrics` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response
- `included` (object[])
  - `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
  - `relationships` (object)
    - `flow-triggers` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_custom_metrics.json).
  - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": [
    {
      "type": "custom-metric",
      "id": "925e385b52fb405715f3616c337cc65c",
      "attributes": {
        "name": "My custom metric",
        "created": "2025-04-15T00:00:00Z",
        "updated": "2025-04-15T00:00:00Z",
        "definition": {
          "aggregation_method": "count",
          "metric_groups": [
            {
              "metric_id": "string",
              "metric_filters": [
                {
                  "property": "string",
                  "filter": {
                    "type": "numeric",
                    "operator": "equals",
                    "value": 0
                  }
                }
              ],
              "value_property": "string"
            }
          ]
        }
      },
      "relationships": {
        "metrics": {
          "data": [
            {
              "type": "metric",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  },
  "included": [
    {
      "type": "metric",
      "id": "string",
      "attributes": {
        "name": "string",
        "created": "string",
        "updated": "string",
        "integration": {}
      },
      "relationships": {
        "flow-triggers": {
          "data": [
            {
              "type": "flow",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "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"
      }
    }
  ]
}
```
