Skip to main content

Report

Reports represent the various reports generated by the system.

📄️ List the records behind a KPI

List the records one /report/kpi value counts, with who each was credited to and why. Use it to explain a number from `terros report kpi`: pass one KPI `value` as `kpi` (CLI: `--kpi`), the same `filter`, `grouping`, and `searchByCurrentStatus`, and the row's key as `groupKey` (for a user grouping, the user ID). It applies the same permissions, team limits, and filters as /report/kpi, so for count KPIs `total` equals the KPI value. `records` lists only what you could already list: an account you can view through /account/list, a task you can list through /task/list, and recordings only for Terros users, as /recording/list allows. The rest are counted in `withheld`. So a caller with narrow list permissions, such as a rep with `self` account access, does not see an account that was credited to them but has since been reassigned. An admin, or anyone whose account:list covers the accounts, gets the full record set with nothing withheld.