Returns daily aggregated spending and usage data for the authenticated user. Useful for building usage dashboards and tracking trends.
Usage
curl "https://app.splox.io/api/v1/activity/daily?days=7" \
-H "Authorization: Bearer YOUR_TOKEN"
Query Parameters
| Parameter | Type | Default | Description |
|---|
days | integer | 30 | Number of days to look back |
Response
{
"data": [
{
"date": "2026-02-01",
"total_cost": 0.0,
"request_count": 0,
"node_count": 0
},
{
"date": "2026-02-02",
"total_cost": 7.5756,
"request_count": 97,
"node_count": 97
}
],
"days": 7
}
| Field | Type | Description |
|---|
data | array | Array of daily activity objects, sorted by date ascending |
data[].date | string | Date in YYYY-MM-DD format |
data[].total_cost | number | Total cost in USD for the day |
data[].request_count | integer | Number of workflow requests |
data[].node_count | integer | Number of node executions |
days | integer | Number of days in the response |
Days with no activity are included with zero values, so you always get a contiguous date range — perfect for charts and graphs.
Notes
Authentication required. Returns daily data for the authenticated user only.