Retrieve a funnel report
POST/v1/reports/funnel
Requires an API key with the reports:read scope. About keys and scopes
Works with integration, agent and partner keys.
Available on plans with advanced reports. Plans
Reads only: safe to retry. About idempotency
Counts the contacts who did each step's event, in order. A contact enters with the first step's earliest event in the window (from inclusive, to exclusive; a date bound is the start of that day in the workspace timezone; default the last 30 days), and reaches a later step with an event after the previous step's, within conversionWindow of entering. Each contact counts once per step, however many times they repeat it. Events past retention are no longer held. Needs a plan with advanced reports: without one, 403 PLAN_FEATURE_UNAVAILABLE. A read sent as POST for its body of steps: it takes no Idempotency-Key.
Header parameters
Kirora-WorkspacestringoptionalPartner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.
pattern
^[A-Za-z0-9._:-]{1,128}$
Request body
fromstringoptionalStart of the window, inclusive: a date-time on a quarter hour (
…T18:30:00Z), or a date meaning the start of that day in the workspace timezone. Give withto; omit both for the last 30 days.tostringoptionalEnd of the window, exclusive, in the same forms. To include a whole last day, pass the day after it:
from=2026-10-01&to=2026-10-08covers 1 to 7 October. No later than the end of today; a window touches at most 366 days. Give withfrom.stepsobject[]requiredThe events, in order.
at least 2 items · at most 5 items
2 child attributes
eventNamestringrequiredThe event that completes the step.
1–128 characters
whereobject[]optionalEvery condition must hold for an event to count as this step.
at least 1 item · at most 5 items
3 child attributes
propertystringrequiredThe event property key.
1–64 characters
operatorstringrequirednotEqualsalso matches an event without the property.equalsandnotEqualscompare the property as text, ignoring case and accents.one of
equals,notEquals,gt,gte,lt,ltevaluestringrequiredWhat to compare with, as text (
"pro","true"); a number ("50") forgt,gte,ltandlte.up to 255 characters
conversionWindowDurationInputoptionalHow long after the first step a contact has to finish the rest: 1 minute to 90 days.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
breakdownobjectoptionalSplits every step by a value: a property of the contact's first matching first-step event, or something of the contact's. The
breakdownLimitvalues with the most contacts at the first step are listed; the rest are summed inother.One of 4 shapes
- With property
The value of a property on the event.
2 child attributes
by"eventProperty"requiredpropertystringrequired1–255 characters
- Option 2
The contact's country (ISO 3166-1 alpha-2).
1 child attribute
by"country"required
- With key
The value of one of the contact's attributes.
2 child attributes
by"attribute"requiredkeystringrequired1–255 characters
- With segmentId
Whether the contact is in the segment, as stored at its last background sweep:
memberornotMember.2 child attributes
by"segment"requiredsegmentIdstringrequireduuid
breakdownLimitintegeroptionalHow many breakdown values to list: 1 to 50, 10 by default.
min 1 · max 50 · default
10
Returns
Returns 200 OK with a FunnelReport in data. It can also return 409 Conflict, 413 Payload Too Large or 415 Unsupported Media Type; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.
200 OKContacts reaching each step, with conversion and drop-off.409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.413 Payload Too LargeThe body is larger than this operation accepts (PAYLOAD_TOO_LARGE).415 Unsupported Media TypeThe body is not JSON, or not the upload the operation takes (UNSUPPORTED_MEDIA_TYPE).
timezonestringrequiredThe workspace timezone that date bounds are in.
fromstringrequiredStart of the window, inclusive.
date-time
tostringrequiredEnd of the window, exclusive.
date-time
conversionWindowDurationrequiredThe window each contact had to finish in.
2 child attributes
valueintegerrequiredmin > 0
unitstringrequiredone of
seconds,minutes,hours,days
stepsobject[]required5 child attributes
eventNamestringrequiredcontactsintegerrequiredContacts who reached this step, in order, within
conversionWindowof the first.min 0
conversionRatenumber | nullrequiredFraction of those who started; null when nobody did.
min 0
stepRatenumber | nullrequiredFraction of those who reached the step before; null for the first, or when nobody did.
min 0
dropOffintegerrequiredContacts who reached the step before but not this one; 0 for the first.
min 0
breakdownobject | nullrequiredThe steps for each value of
breakdown, largest first; null without one.2 child attributes
rowsobject[]required2 child attributes
keystring | nullrequiredThe value: a country code, the attribute or property as text, or
member/notMemberfor a segment;nullwhen the contact or event has none.stepsobject[]required5 child attributes
eventNamestringrequiredcontactsintegerrequiredContacts who reached this step, in order, within
conversionWindowof the first.min 0
conversionRatenumber | nullrequiredFraction of those who started; null when nobody did.
min 0
stepRatenumber | nullrequiredFraction of those who reached the step before; null for the first, or when nobody did.
min 0
dropOffintegerrequiredContacts who reached the step before but not this one; 0 for the first.
min 0
otherobject | nullrequiredEvery value past the listed ones, summed; null when there are none.
1 child attribute
stepsobject[]required5 child attributes
eventNamestringrequiredcontactsintegerrequiredContacts who reached this step, in order, within
conversionWindowof the first.min 0
conversionRatenumber | nullrequiredFraction of those who started; null when nobody did.
min 0
stepRatenumber | nullrequiredFraction of those who reached the step before; null for the first, or when nobody did.
min 0
dropOffintegerrequiredContacts who reached the step before but not this one; 0 for the first.
min 0