Solved

Flows showing as Campaigns in the API

  • 16 October 2023
  • 3 replies
  • 51 views

Badge +2

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!

 

icon

Best answer by Brian Turcotte 24 January 2024, 05:33

View original

3 replies

Userlevel 7
Badge +36

Hi @TianaS!

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

Best,
Brian

Badge +2

Hi @Brian Turcotte, any insight on this?

Userlevel 7
Badge +36

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

Reply