Retrieve a funnel reportMenu

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-Workspacestringoptional

Partner 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

fromstringoptional

Start 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 with to; omit both for the last 30 days.

tostringoptional

End 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-08 covers 1 to 7 October. No later than the end of today; a window touches at most 366 days. Give with from.

stepsobject[]required

The events, in order.

at least 2 items · at most 5 items

2 child attributes
eventNamestringrequired

The event that completes the step.

1–128 characters

whereobject[]optional

Every condition must hold for an event to count as this step.

at least 1 item · at most 5 items

3 child attributes
propertystringrequired

The event property key.

1–64 characters

operatorstringrequired

notEquals also matches an event without the property. equals and notEquals compare the property as text, ignoring case and accents.

one of equals, notEquals, gt, gte, lt, lte

valuestringrequired

What to compare with, as text ("pro", "true"); a number ("50") for gt, gte, lt and lte.

up to 255 characters

conversionWindowDurationInputoptional

How long after the first step a contact has to finish the rest: 1 minute to 90 days.

2 child attributes
valueintegerrequired

min > 0

unitstringrequired

one of seconds, minutes, hours, days

breakdownobjectoptional

Splits every step by a value: a property of the contact's first matching first-step event, or something of the contact's. The breakdownLimit values with the most contacts at the first step are listed; the rest are summed in other.

One of 4 shapes
With property

The value of a property on the event.

2 child attributes
by"eventProperty"required
propertystringrequired

1–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"required
keystringrequired

1–255 characters

With segmentId

Whether the contact is in the segment, as stored at its last background sweep: member or notMember.

2 child attributes
by"segment"required
segmentIdstringrequired

uuid

breakdownLimitintegeroptional

How 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).
timezonestringrequired

The workspace timezone that date bounds are in.

fromstringrequired

Start of the window, inclusive.

date-time

tostringrequired

End of the window, exclusive.

date-time

conversionWindowDurationrequired

The window each contact had to finish in.

2 child attributes
valueintegerrequired

min > 0

unitstringrequired

one of seconds, minutes, hours, days

stepsobject[]required
5 child attributes
eventNamestringrequired
contactsintegerrequired

Contacts who reached this step, in order, within conversionWindow of the first.

min 0

conversionRatenumber | nullrequired

Fraction of those who started; null when nobody did.

min 0

stepRatenumber | nullrequired

Fraction of those who reached the step before; null for the first, or when nobody did.

min 0

dropOffintegerrequired

Contacts who reached the step before but not this one; 0 for the first.

min 0

breakdownobject | nullrequired

The steps for each value of breakdown, largest first; null without one.

2 child attributes
rowsobject[]required
2 child attributes
keystring | nullrequired

The value: a country code, the attribute or property as text, or member / notMember for a segment; null when the contact or event has none.

stepsobject[]required
5 child attributes
eventNamestringrequired
contactsintegerrequired

Contacts who reached this step, in order, within conversionWindow of the first.

min 0

conversionRatenumber | nullrequired

Fraction of those who started; null when nobody did.

min 0

stepRatenumber | nullrequired

Fraction of those who reached the step before; null for the first, or when nobody did.

min 0

dropOffintegerrequired

Contacts who reached the step before but not this one; 0 for the first.

min 0

otherobject | nullrequired

Every value past the listed ones, summed; null when there are none.

1 child attribute
stepsobject[]required
5 child attributes
eventNamestringrequired
contactsintegerrequired

Contacts who reached this step, in order, within conversionWindow of the first.

min 0

conversionRatenumber | nullrequired

Fraction of those who started; null when nobody did.

min 0

stepRatenumber | nullrequired

Fraction of those who reached the step before; null for the first, or when nobody did.

min 0

dropOffintegerrequired

Contacts who reached the step before but not this one; 0 for the first.

min 0