Platform API · Product API · Analytics
Flow reports
Discover flows and their versions, then report on them: the flow's totals and its time series cover every published version at once, or a single version when you scope them, which is how an A/B test is measured before it is promoted.
Flows Beta are the branching journeys a project runs. Once a flow is published, the Product API lets an integration find it, enumerate its versions, and report on how it is performing. This page covers both halves: the discovery endpoints that hand you the ids, and the flow reports that turn them into numbers. Creating and editing flow drafts is a separate surface, covered in Flows. In the dashboard, the same figures are described in Flow analytics, and the 10% canary in Live test.
Everything on this page is governed by a single scope, PROJECT_AUTOMATION_READ.
Finding a flow
The list endpoint is the entry point: it returns the flows of a project, newest first, and the id it gives you is exactly the value the report endpoints take.
List the project's flows.
Retrieve a single flow.
The listing accepts the standard Query Filter syntax for filtering, sorting and pagination, so you can narrow it to the flows you care about:
GET /project/{project}/flow
?status_eq=enabledidstringThe flow id — the value /project/{project}/analytics/flow/{flow} and its /series take.
namestringThe flow's name, as it reads in the dashboard.
statusstringOne of enabled, disabled or archived.
archivedAtstringWhen the flow was archived, or null while it is still active. It also bounds what the series can cover — see Timeframe and freshness.
Versions
A flow evolves through versions, and the versions endpoint is where you find the ids the report scopes to. It returns every version of the flow, newest first, archived ones included.
List a flow's versions.
Two fields carry the meaning:
statusis the version's role, and it is permanent for the version's life. A version never changes role: promoting a test version to production produces a new version with its own id rather than rewriting the old one. So a version id is also a stable label for the cohort its traffic belongs to.sequenceis the permanent version number — v1, v2, v3 — assigned when a version first goes live. A0means unnumbered: a draft or a manual preview that has never gone live.
status | What it is | In analytics |
|---|---|---|
live | The production version, running for the full audience. | Counted |
live-test | The A/B cohort running in parallel on a small share of the audience. Real messages to real contacts. | Counted, and included in the flow total |
draft | The single editable work in progress. | Not counted |
test | A manual preview run of the draft. | Not counted |
idstringThe version id — the value filter[version] takes on the flow report.
namestringThe version's name.
sequenceintegerPermanent version number (1, 2, 3 …). 0 for an unnumbered draft or preview.
statusstringThe permanent role: live, live-test, draft or test.
liveAtstringWhen the version first went live, or null if it never did.
archivedAtstringWhen the version was archived, or null while it is still in use.
The flow reports only ever carry data for live and live-test versions. A draft never sends, and the messages of a manual test run are left out of the flow's figures, even though they are real, billed messages. They do count in the account overview, which adds up everything the project sent, so the figures of a project's flows can add up to less than the overview.
The flow reports
Flows have the two report shapes the other per-entity families have: a values report with the totals over a window, and a series report with the same statistics bucketed over time.
Flow report — aggregate totals.
Flow report — time series.
Both follow the same grammar as every other family (Building queries) and return the same shapes (Reading results), with resource.type set to flow. The specifics:
| Values | Series | |
|---|---|---|
| Statistics | The same catalog the automation report exposes — delivery, engagement, conversion, cost and suppression — plus replies, the inbound messages linked back to the flow's sends, and goals, its fulfilled objectives. See Statistics catalog. | The counts that can be bucketed: delivered, clicks, clicks_first, contacts_clicked_approx, conversions, conversion_value, unsubscribes, replies and goals. Rates, sent, cost and roas are totals: read them from the values report. |
| Default window | The flow's stored last 30 days. | The last 30 days, interval=day. |
group_by | channel, country — one dimension at a time. | channel, country — one dimension at a time. |
filter | channel, country, version. | channel, country, version. |
| Comparison | compare_to=previous_period — see Timeframe and freshness. | Not applicable. |
The totals of the flow, served from its stored last 30 days:
GET /project/{project}/analytics/flow/{flow}
?statistics=sent,delivered,click_rate,conversions,conversion_value,goalsThe same flow, day by day:
GET /project/{project}/analytics/flow/{flow}/series
?statistics=delivered,clicks_first,conversions,conversion_value
&timeframe=last_30_days
&interval=daygroup_by=channel gives you the per-leg figures of a fallback chain, and pairing one group_by with a filter on another dimension cross-cuts the report the same way it does elsewhere — filter[country]=ES with group_by=channel, for example. A goal is not tied to a channel, so on the values report goals cannot be combined with filter[channel] or group_by=channel: request it in a call without the channel cut.
Timeframe and freshness
The values report has two sources, the same way the automation report does, and which one answers depends on what you pass:
- No
timeframeand nofilter[version]: the flow's stored statistics, the rolling last 30 days, with the 30 days before them attached as a previous-period comparison. The response declares that real window intimeframe(keyisnull; readstartandend), carries aserved_from_cached_30d_windowwarning, and itsfreshness.sourceisentity_stats. An archived flow is answered the same way, over that stored window rather than its whole lifetime. If the stored statistics have not been computed yet, the figures are empty,timeframeechoes the window of the request, and the warning'scached_windowisnull. - An explicit
timeframe, orfilter[version]: computed on demand over that window, or over the last 30 days when you pass only the version (the stored statistics hold every version together, so a single version is always computed). The start can be at most 18 months ago, because older message delivery is no longer kept, and an older start is rejected withbound_exceeded. An end in the future is clamped to the end of the current hour, and the window spans at most 540 days. The previous-period comparison is added only when you ask for it withcompare_to=previous_period, and that previous window must also start within the last 18 months. A computed result is reused for an hour:freshness.sourceislivewhen it was just computed andcachewhen you get that reused result, withcomputed_atsaying when it was produced.
The series report is always computed on demand — its freshness.source is live. Its window is clamped to the flow's own lifetime: from the day the flow was created to the day it was archived. An active flow (no archivedAt) is served exactly as you asked for it. When the clamp trims your window, the response carries a timeframe_clamped_to_entity_lifetime warning and echoes the window it actually used.
Totals versus one version
filter[version] is the parameter flows have and no other family does, and it changes what the whole report means. It works the same way on the values and the series report.
Without filter[version], the report is the flow total across its published versions — the live version and the live-test cohort added together, with the messages of manual test runs left out. That is the honest business number: the A/B cohort is real traffic to real contacts, with real deliveries, real clicks and real revenue, so leaving it out would under-report what the flow actually did.
With filter[version]=<versionId>, every statistic is scoped to that single version. Not just the delivery figures: clicks, conversions and revenue are scoped too, because attribution keeps the version alongside the flow on the events it credits. That is what makes the parameter useful — it is how you judge a test version on its own merits before deciding whether to promote it.
GET /project/{project}/analytics/flow/{flow}
?statistics=delivered,click_rate,conversion_rate,conversion_value,roas
&timeframe=last_30_days
&filter[version]=66b1f2a4e5a6b7c8d9e0f1b3Comparing two versions
There is no group_by=version and no compare endpoint for flows. You compare by issuing the same request twice, changing only the version id. The values report is the natural one for this, because the rates you compare are totals:
List the flow's versions
Call
GET /project/{project}/flow/{id}/versionsand pick theliveversion and thelive-testversion.Report on each one
Issue two identical values requests — same statistics, same timeframe — differing only in
filter[version]. For the trend of each version, do the same with the series report and the same interval.Compare like for like
Read the rates rather than the raw counts. The A/B cohort runs on a small share of the audience, so its volumes are smaller by design;
click_rate,conversion_rateandroasare what put the two versions on the same footing.Optionally, take the total
The same request with no
filter[version]gives you the flow as a whole, both cohorts included — the number to report to the business.
Next
Last updated