Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_metric_id_for_mapped_metric.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_metric_id_for_mapped_metric.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

Get Metric ID for Mapped Metric

GEThttps://a.klaviyo.com/api/mapped-metrics/{id}/relationships/metric

Get the ID of the metric for the given mapped metric.

Revision header
revision: 2026-10-15required
Scopes
metrics:read
Rate limits
Burst: 3/sSteady: 60/m

Path parameters

  • id#stringrequired

    The type of mapping.

    Allowed values:
    • added_to_cart
    • cancelled_sales
    • ordered_product
    • refunded_sales
    • revenue
    • started_checkout
    • viewed_product

    Example: revenue

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequirednullable
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • metric
    • id#stringrequired

      The Metric ID

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string