Hi!
I realized that for some of my clients, when I use the segment “Campaign Name”, some of their Flows also show up in the API response. For example, the request I use is:
https://a.klaviyo.com/api/v1/metric/api_key/export?start_date=2022-11-01&end_date=2022-11-30&count=1000&measurements=count&api_key=PrivateKey=Campaign Name&unit=day
And while the API response contains valid campaigns for my client (such as “Email #1”), it also contains what my client says is a Flow and not a Campaign (such as, for example, “New Customer Thank You: Email #1” or “Browse Abandonment: Email #1”). When I use the segment “$flow” in the request, this flow doesn’t show up in the API response.
I also tried it in the new stable API, using this request (thinking it might be because I still use the legacy API):
{
"data": {
"type": "metric-aggregate",
"attributes": {
"metric_id": "_____",
"measurements": [
"count"
],
"interval": "day",
"filter": [
"greater-or-equal(datetime,2022-11-01T00:00:00)",
"less-than(datetime,2022-11-30T00:00:00)"
],
"page_size": 1000,
"by": [
"Campaign Name"
]
}
}
}
But I get the same API response.
Do you know what could be the problem? Is there a way I could ask my client for a screenshot of their Klaviyo platform to help differentiate Campaigns and Flows?
Thank you!