Skip to main content
Returns aggregate activity statistics for the authenticated user, including balance, total requests, total spending, average cost per request, and token usage.

Usage

curl https://app.splox.io/api/v1/activity/stats \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

{
  "balance": 7818.6238,
  "total_requests": 104284,
  "total_spending": 2181.3762,
  "avg_cost_per_request": 0.029824,
  "input_tokens": 0,
  "output_tokens": 0,
  "total_tokens": 0
}
FieldTypeDescription
balancenumberCurrent balance in USD
total_requestsintegerTotal number of workflow executions
total_spendingnumberTotal amount spent in USD
avg_cost_per_requestnumberAverage cost per workflow execution in USD
input_tokensintegerTotal input tokens consumed
output_tokensintegerTotal output tokens consumed
total_tokensintegerTotal tokens consumed (input + output)

Notes

Authentication required. Returns lifetime statistics for the authenticated user’s account.