Flows API, Revenue metrics

  • 1 July 2021
  • 4 replies


Hi guys,

2 questions.


#1 How we can get Flow revenue information via API? If not possible, any plans to make it available?


#2 I see that we have Campaigns, anytime soon to expose also creating Flows via API?




Best answer by Dov 2 July 2021, 16:56

View original

4 replies

Userlevel 6
Badge +5

Hi @Slav @ Rush,

Thanks for sharing your question with the Klaviyo Community

At this time it isn't possible to report on revenue by attribution source in this way using our API.  For Flow and Campaign emails, you would instead need to use the "attributed message" dimension to pull metrics attributed to specific messages in your account.  This article provides some API calls that you can use to get started with this:, and you can also use the Campaign API here to pull a list of message IDs first in order to loop through them with the Metrics API:

In terms of creating flows via API, at this time, we do not have an API endpoint that can be used to create/copy flows. However, I have submitted a proposal to the product team for consideration. If there is enough interest it could potentially be developed in the future :)

Thanks for being a part of our Community.

Just a follow up to the original question.  Is there any way to get Flow IDs/name for each campaign?  How can I join the flow IDs to the related individual emails that go out for that flow?

Userlevel 6
Badge +5

Hello @NickGuebs,

Thanks for your post.

Exporting the analytics for a certain flow allows you to easily measure and review how successful a flow is. Further, you can analyze the data on message by message basis. 

To export the analytics for a given flow, navigate to the Flows tab of your account. Here, you will see an Export Analytics button at the top.


The export will generate a .csv file containing fields such as the Flow ID, Flow Name, Flow Message ID and more. The same strategy can be used to export campaign analytics. Again, the information contained in the .csv file will include the campaign name and other data relating to the campaign.

I hope that helps!

Hi @Dov 

Apologies. I should have been clearer in my original message.  I’m referring specifically to exporting data in this way from the API rather than the interface.