Track ValueMetric
Records a metric value for the given Make scenario. If a record for the same makeScenarioId already exists for the current date, the value is added to the existing record rather than creating a new one.
Body·
required
application/json
Value Metrics to be created
- Type: integermake
Scenario Id requiredID of the Make (Integrator) scenario that triggers this metric increment
- Type: number Format: floatvaluerequired
The numeric amount to add to the metric each time this module runs; can be a fixed number or dynamically sourced from other modules. Stored as decimal(20,6).
- Type: booleanai
Tokens Log When true, the value amount is deducted from the organization AI Credits quota instead of incrementing the metric.
- Type: stringlabel
The name of the metric or event being tracked (e.g. ‘New Lead’, ‘Sale Completed’).
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/value-metric
curl https://test.boost.space/api/value-metric \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"updated": "2026-01-15T09:30:00Z",
"updatedUserId": 42,
"makeScenarioId": 42,
"value": 1.5,
"aiTokensLog": true,
"label": "string"
}'
{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"updated": "2026-01-15T09:30:00Z",
"updatedUserId": 42,
"makeScenarioId": 42,
"value": 1.5,
"aiTokensLog": true,
"label": "string"
}