Skip to main content
POST
Run a cohort analysis report

Authorizations

X-API-Key
string
header
required

Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Body

application/json

Dates use the workspace timezone. Supply both dates or omit both for the default range.

cohort_group
enum<string>
default:registration

Affiliate manager grouping requires visibility of all affiliates.

Available options:
registration,
ftd,
deposit,
affiliate,
affiliate_manager
cohorts_by
enum<string>

Acquisition event for affiliate and affiliate manager rows. Defaults to registration. Deposit uses the first deposit per player in each period.

Available options:
registration,
ftd,
deposit
cohort_size
enum<string>
default:week

Cohort buckets follow the calendar, with weeks beginning on Monday. Age columns use 1, 7 or 30 days respectively.

Available options:
day,
week,
month
date_from
string<date>
required if date_to is set

First acquisition date, rounded down to the start of its period.

date_to
string<date>
required if date_from is set

Last acquisition date, rounded up to the end of its period. The range is limited to the latest 90 days, 52 weeks or 24 months.

metric
string

A player-based Operator or Broker metric visible to the caller, or a custom metric whose operands are eligible for the selected cohort. Examples include dep_amount, dep_total and fdep_rate. Clicks, impressions, CPC, flat fees and affiliate balance metrics return HTTP 422. reg_qty, ver_qty, reg_to_ver, reg_to_ftd and reg_to_qftd require a registration anchor. Defaults to dep_amount when available, otherwise ftd_qty.

columns
enum<string>
default:age

Affiliate and affiliate manager rows support age columns only.

Available options:
age,
date
values
enum<string>
default:cumulative
Available options:
cumulative,
period
show
enum<string>

Period rows default to value. Grouped rows use per_player for eligible metrics and value for ratios and player counts.

Available options:
value,
per_player
filters
object

Operator or Broker attribution filters keyed by filter name. Filters select players by their anchor event. Subsequent visible activity can belong to another affiliate.

Example:
currency
string

Report currency code. Defaults to the workspace currency.

sort_by

For grouped rows, players (default) or a zero-based age column in the selected range.

Pattern: ^(players|[0-9]+)$
sort_direction
enum<string>

For grouped rows. Defaults to descending order.

Available options:
asc,
desc

Response

Cohort report in the workspace timezone.

status
enum<string>
required
Available options:
success
code
enum<integer>
required
Available options:
200
name
string
required
message
string
required
info
object
required