Retrieve app statistics#
Returns usage counts for one app. Values are cached: active users, all users and the activity chart for 1 hour, sign-ups today for 30 minutes, sign-ins for 5 minutes and the method ratio for 6 hours. Send refresh_cache=true to recount now.
The key in Authorization must own the app (the app's key or a workspace key above it). X-Authorization carries an M2M token with the read scope. See Authentication.
GET
/v1/:app_id/statsAPI key + M2M tokenapp_idstringrequired
The app (app_...).
refresh_cachestring
true to skip the cache.
Requestbash
curl https://api.scute.io/v1/$SCUTE_APP_ID/stats \ -H "Authorization: Bearer $SCUTE_APP_SECRET" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"Response 200json
{ "active_users": 412, "signups_today": 7, "all_users": 1890, "user_activity_chart": [ { "date": "2026-10-21", "active_users": 120 }, { "date": "2026-10-22", "active_users": 131 } ], "authentication_ratio": { "webauthn": 38.5, "magic": 41.2, "otp": 20.3 }, "sign_ins_chart": [ { "date": "2026-11-13", "sign_ins": 210 }, { "date": "2026-11-14", "sign_ins": 198 } ], "sign_ins_30_days": 6120}The chart and ratio examples are shortened.
| Field | Meaning |
|---|---|
| active_users | Distinct users with a session used in the last 30 days |
| signups_today | Users created since the start of today |
| all_users | Every user of the app |
| user_activity_chart | Distinct active users per day for the last 30 days, oldest first |
| authentication_ratio | Percentage of the app's sessions for every session type: webauthn, magic, xlogin, oauth, misc, otp, workspace, m2m, mfa, challenge, impersonation. Empty when the app has no sessions |
| sign_ins_chart | Sign-ins per day (UTC) for the last 7 days, oldest first |
| sign_ins_30_days | Sign-ins in the last 30 days |
| Status | When |
|---|---|
| 401 | No valid key or M2M token |
| 403 | The key does not own the app |
| 404 | The app does not exist |