Platform API · Product API · Analytics
Analytics
Curated, read-only performance reports for your account, campaigns, automations, flows and transactional traffic. One consistent request grammar, one consistent response shape, across every report family.
The Analytics endpoints expose Instasent's performance data as a small set of curated, read-only reports. You ask for named statistics over a timeframe and get back a clean, predictable JSON document — the same response shape whether you are reporting on the whole account, a single campaign, an automation, a flow, or your transactional traffic.
There is no query language to learn and no raw data to post-process. You pick the statistics you want, optionally a timeframe and a breakdown, and the engine returns aggregated values (or a zero-filled time series) already computed for you.
Report families
Analytics is organised into families. Each family answers a different question and lives under /project/{project}/analytics/…. Every family offers a values report (aggregate totals) and a series report (the same statistics bucketed over time); two of them also offer a compare report.
Aggregate account performance across everything you sent — the dashboard summary as one report.
Campaign reportStatistics for a single campaign, plus a compare report to rank several campaigns side by side.
Automation reportStatistics for a single automation, with a built-in current-vs-previous comparison and a compare report.
Flow reportStatistics for a single flow — the whole flow, or one version of it.
Transactional rollupHow your transactional (API / direct) traffic is performing across the project.
Account overview
The whole-account view: terminal-state delivery, engagement, conversion, cost and suppression across all the traffic Instasent sent for you — campaigns, automations, flows and transactional sends added together. It is the only report that accepts the full breakdown catalog — group_by over channel, country, language, gender, segment or communication_type, whose buckets are campaign, automation, flow and direct — while its filter is country only. It also accepts a previous-period comparison. The default timeframe is the last 3 months. See the support matrix for what every report supports.
The overview counts every message a flow sent, including those of manual test runs, because they are real, billed messages. A flow report leaves test runs out and counts only its published versions, so the figures of a project's flows can add up to less than the overview's flow bucket.
Account overview — aggregate totals.
Account overview — time series.
Campaign report
Statistics for one campaign. The values report always returns the campaign's lifetime totals, read from its stored statistics, and so do its channel and country breakdowns. A timeframe does not narrow it: if you pass one, the figures are still the lifetime totals and the response carries a timeframe_clamped_to_entity_lifetime warning saying the timeframe was informational. To see a campaign over a specific window, use the series report, which buckets the campaign's activity over time within its lifetime. Use the compare endpoint to rank up to 5 campaigns side by side in a single call.
Campaign report — aggregate totals.
Campaign report — time series.
Compare up to 5 campaigns in one call.
Automation report
Statistics for one automation. The values report has two sources, and which one answers depends on whether you pass a timeframe:
- Without a timeframe, it reads the automation's stored statistics: the rolling last 30 days, with the 30 days before them already attached as a previous-period comparison, so you see the trend without a second call. The response declares that real window in
timeframe(keyisnull; readstartandend) and carries aserved_from_cached_30d_windowwarning. An archived automation is answered the same way, over that stored window rather than its whole lifetime. If the stored statistics have not been computed yet (for example, right after the automation is activated), the figures are empty,timeframeechoes the window of the request, and the warning'scached_windowisnull. - With a timeframe, it is computed on demand over exactly that window. The start can be at most 18 months ago, because older message delivery is no longer kept, and an older start is rejected with
bound_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.
Use the compare endpoint to rank up to 5 automations side by side. Compare always reads each automation's stored last 30 days, whatever timeframe you send, so each entry carries its own window and the same warning. To compare automations over another window, request each one's values report with that timeframe.
Automation report — aggregate totals.
Automation report — time series.
Compare up to 5 automations over their stored last 30 days.
Flow report
Statistics for one flow. A flow is built in the dashboard and read through the API, so the family comes with its own discovery endpoints — the flow listing and, under it, the version listing that hands you the ids. It is the only family with a version filter: left out, the report is the flow total across its published versions; passed, every statistic is scoped to the one version, which is how an A/B version is measured against the live one.
The values report answers like the automation one. Without a timeframe or a version it reads the flow's stored last 30 days, with the previous 30 days attached as a comparison and a served_from_cached_30d_window warning; with a timeframe or a version it is computed on demand, starting at most 18 months ago, and the comparison is added only when you ask for it with compare_to=previous_period. The series report is always computed on demand, with its window clamped to the flow's lifetime.
Flow report — aggregate totals.
Flow report — time series.
Full detail, discovery endpoints and the version model: Flow reports.
Transactional rollup
A project-level rollup of all your direct / transactional (API-sent) traffic over a timeframe — the "how is my transactional traffic performing?" view. It is always computed on demand and accepts a previous-period comparison. The default timeframe is the last 30 days with a comparison.
Transactional rollup — aggregate totals.
Transactional rollup — time series.
How the reports work
A few principles hold across every family:
- You choose the statistics. The required
statisticsparameter is a comma-separated list of names from a fixed catalog. Each family exposes the subset that makes sense for it. See Statistics catalog. - One request grammar. Timeframe, timezone, currency, breakdowns and comparison are expressed the same way everywhere. See Building queries.
- One response shape. Every response wraps the report under a top-level
entitykey (the Product API convention). Inside it, values reports return astatisticsobject; series reports return a shareddate_timesaxis with index-aligned arrays. Every report echoes the resolvedtimeframe,currencyand afreshnessblock. See Reading results. - Read scopes only. A report covers the families your token is allowed to read. The overview, for example, reports the campaign / automation / transactional families your token has read access to.
These reports measure the performance of what Instasent sent for you. That framing matters for the suppression statistics in particular: unsubscribes counts only opt-outs your Instasent messaging drove, not your audience's total current unsubscribe state. See the suppression statistics for exactly what is counted and what is excluded.
Limitations
The account overview reflects what has reached a final state — delivered, failed or expired — not everything that was just dispatched. It does not report messages still in transit.
Because of that, the most recent window (up to ~48 hours) is intrinsically partial and under-reports: recent volumes and cost are approximate until the traffic finishes settling, then converge to their true totals. This is why overview cost is reported as the cost_approx flavour — see the approximate statistics explanation.
Where to go next
Every statistic you can request, what it means, and which families expose it.
Building queriesTimeframes, timezone, currency, breakdowns and comparisons.
Conversions & revenueHow revenue statistics are computed and scoped.
Reading resultsThe response shapes, freshness, warnings and errors.
Flow reportsDiscovering flows and their versions, and scoping a report to one version.
Last updated