Skip to main content
POST
Create a computed trait

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
name
string
required

Lowercase identifier the value is written under (e.g. orders_last_30d).

definition
object
required

The computed-trait DSL: an aggregate (agg) over events named event_type within a window_days lookback, optionally narrowed by an equality predicate map over event properties.

schedule_minutes
integer

Recompute cadence in minutes; defaults to 1440 (daily).

Required range: 1 <= x <= 525600
status
enum<string>
Available options:
active,
paused

Response

The created computed trait

data
object

A declarative computed trait — an aggregate over a tenant's CDP events that the scheduled evaluator materialises onto each contact's traits.

meta
object