Skip to main content
Solved

Flows showing as Campaigns in the API

  • October 16, 2023
  • 3 replies
  • 67 views

Forum|alt.badge.img+3
  • Contributor III
  • 5 replies

Hi,

When using the /metric-aggregates endpoint and settings the ‘by’ and ‘sort’ parameters to ‘Campaign Name’, I am still seeing flows in the API response.

Request:

{
"data": {
"type": "metric-aggregate",
"attributes": {
"metric_id": "UZ9CLT",
"measurements": [
"unique"
],
"interval": "day",
"filter": [
"greater-or-equal(datetime,2023-08-01T00:00:00.000Z)",
"less-than(datetime,2023-09-01T00:00:00.000Z)"
],
"page_size": 500,
"page_cursor": "",
"by": [
"Campaign Name"
],
"sort": "Campaign Name"
}
}
}

Response contains:

 

Those are Flows as you can see in the UI screenshot here:

 

Is there something wrong in the way we request this data / why do these flows show up when requesting emails?

 

Thanks!

 

Best answer by Brian Turcotte

Hi @TianaS!

My apologies for the delay here. Our API team is currently working on a way to streamline reporting tasks that previously would require using the query aggregates endpoint, so I’ll update the Community when that releases.

 

Best,

Brian

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • October 17, 2023

Hi @TianaS!

I’m going to check on this with our API team now and update the thread ASAP!

Best,
Brian


Forum|alt.badge.img+3
  • Author
  • Contributor III
  • 5 replies
  • November 13, 2023

Hi @Brian Turcotte, any insight on this?


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • January 24, 2024

Hi @TianaS!

My apologies for the delay here. Our API team is currently working on a way to streamline reporting tasks that previously would require using the query aggregates endpoint, so I’ll update the Community when that releases.

 

Best,

Brian