Skip to main content
Solved

in API how to retrieve all emails sent by a particular flow?

  • November 21, 2025
  • 2 replies
  • 27 views

Forum|alt.badge.img
  • Contributor I

I would like to use the API to retrieve all emails sent by a particular flow.  I know I can look up sent emails using the Get Events endpoint with filtering for the “Received Email” metric, but filtering by flow is not one of the options.  Do I just need to retrieve all of the “Received Email” events (which might require making several requests and retrieving hundreds of events even though only a handful of them are from the flow I care about) and then apply my own filtering afterward?

 

There’s another API endpoint called Get Messages For Flow Action, but I tried it and it seems that “messages” in this case does not refer to the actual individual emails that were sent, a “message” here means a type of message (a particular name, template, etc).

Best answer by cadence

@a22, yes getting all the events and then filtering them in post-processing on your end is the best approach. 

Cadence / Book a demo

2 replies

cadence
Expert Problem Solver II
Forum|alt.badge.img+9
  • Expert Problem Solver II
  • Answer
  • November 21, 2025

@a22, yes getting all the events and then filtering them in post-processing on your end is the best approach. 

Cadence / Book a demo


Carson_Daniels
Contributor I

Yes — the API doesn’t currently provide a direct filter to get all emails sent by a specific flow. You will need to:


Use the Get Events endpoint to retrieve all “Sent Email” (or “Received Email”) events.


Collect them across multiple requests if needed (pagination may apply).


Apply your own filtering afterward to only include events associated with the flow you care about.


The Get Messages For Flow Action endpoint is more about message templates or definitions, not the actual sent email instances, so it won’t give you the individual emails.
In short, retrieving all events and filtering locally is the standard approach for now.