Admin - Activity Log
Counts per activity_type in a recent window
Aggregated counts for a "top actions" dashboard widget. Returns total + failure count per activity_type.
get/api/admin/activity-logs/stats
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/activity-logs/stats
- AuthHTTP bearer
Query parameters
sinceHoursnumber
Example:24
limitnumber
Example:20
Response
unknown required
Example response
{
"success": true,
"sinceHours": 24,
"stats": [
{
"activity_type": "food_log.create",
"total": 482,
"failures": 3
},
{
"activity_type": "auth.login",
"total": 310,
"failures": 22
},
{
"activity_type": "weight.add",
"total": 94,
"failures": 0
}
]
}Changes
No recorded changes to this operation across all 34 revisions of this API.