Skip to main content
GET
Get an aggregate
Returns one aggregate in full: its name, what it counts, its key, its window and its filter. The response does not hold the counts. A rule reads the count of the evaluated identifier as aggregate.custom.<name> when you evaluate a flow.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

aggregate_id
string
required

The aggregate identifier.

Example:

"agg_01jc0t6fwwfgfsq1md24mhyztj"

Response

OK

id
string
required

The aggregate identifier.

Example:

"agg_01jc0t6fwwfgfsq1md24mhyztj"

name
string
required
Example:

"fraud_reports"

description
string
required
Example:

"Confirmed fraud reports per phone number."

type
enum<string>
required

Always CUSTOM. An aggregate you define is your own, and only your rules can read it.

Available options:
CUSTOM
measure
enum<string>
required
Available options:
COUNT,
COUNT_DISTINCT
key
string[]
required
Example:
window
enum<string>
required
Available options:
10m,
1h,
3h,
24h,
14d
Example:

"14d"

source
object
required
distinct
string

Only on a COUNT_DISTINCT aggregate.

Example:

"target.phone_number"