Skip to main content
Question

API Issue: Metric-Aggregate dimensions returning empty strings for custom metric

  • March 11, 2026
  • 1 reply
  • 7 views

Forum|alt.badge.img+4

Hi,

I am experiencing an issue with the Metric-Aggregate API (POST /api/metric-aggregates/) regarding the internal metric added_to_list_internal_klaviyo (Metric ID: YbGwiU).

The Problem: When I query this metric and attempt to group by "List", the API returns the correct total count, but the dimensions array contains only an empty string "".

The Evidence:

  1. I have verified via the Events API that these events do contain the properties "List ID" and "List Name" within the event_properties object.

  2. However, attempting to use "by": ["List ID"] or "by": ["$list_id"] in the aggregate request results in a 400 Invalid Input error, stating these are not valid choices for by.

My Request: Could you please clarify why these properties—which clearly exist on the event level—are not available as dimensions for aggregation on this specific internal metric?

Technical Details for your team:

  • Metric Name: Added to List

  • Metric ID: YbGwiU

  • Integration: Klaviyo (Internal)

  • Environment: Production 2026

Thank you for your assistance.

1 reply

Byrne C
Community Manager
Forum|alt.badge.img+28
  • Community Manager
  • March 13, 2026

Hi ​@santiagosanti,

Thank you for providing this feedback, and explaining where Query Metric Aggregates falls short. While I don’t have specific insight into the reason for QMA being designed without list in mind, I’m more than happy to reach out to our product team and recommend that we make this possible during the next revision of this endpoint.