Skip to content

GET /usage

GET/v1/collect/usagesecret key

Totals for the data currently stored under your tenant (erased users are not counted).

Request
curl "https://api.behavlabs.com/v1/collect/usage" -H "Authorization: Bearer $BEHAVLABS_SECRET_KEY"
Response
{ "tenant_id": "tn_...", "sessions": 5210, "users": 812, "user_days": 2904, "users_multi_day": 431 }
Field Meaning
sessions Collection sessions: one per page load with consent.
users Distinct user_id values.
user_days Distinct (user, UTC day) pairs.
users_multi_day Users seen on at least two different UTC days, the figure that matters most for the alpha.