Creates a new metric.
JWT authentication for organization-scoped endpoints.
Request schema for creating a metric
Display name for the metric
"Daily Active Users"
Detailed description of the metric
"Number of unique users who performed any action in the last 24 hours"
Unit of measurement for the metric
"users"
Category/type of the metric
engagement, conversion, revenue, nps, csat, ces, ratio, custom Comparison operator for the target
greater_than, less_than, equal_to Target value to achieve
100
Direction of improvement (up = higher is better, down = lower is better)
up, down Current value of the metric
150
Previous value of the metric for comparison
140
Type of period for metric comparison
rolling, calendar "calendar"
Specific period value for metric comparison
day, week, month, quarter, year, 7-day, 30-day, 90-day "month"
Historical values for trend analysis
Related outcomes that use this metric
Array of outcome IDs to associate with this metric
["7b9e5d2c-f314-48a9-be56-9843a2f6c019"]Success
Response containing a single metric
Metric data representing a measurable KPI result