API reference/GET /stats
Usage stats
Per-token usage rollup for the current billing period. Calls, success rate, average latency, total spend estimate.
GEThttps://useknockout--api.modal.run/stats
Request
curl https://useknockout--api.modal.run/stats \
-H "Authorization: Bearer $TOKEN"Response
HTTP/1.1 200 OK
content-type: application/jsonErrors
FieldTypeDefaultDescription
401unauthorized—Missing or invalid token.
Every error response also includes a
request_id in the JSON body. Quote it when reporting issues.Notes
- Stats are eventually consistent — recent calls (last ~30 seconds) may not appear yet.