activity

GET /api/activity/reports/productivity/

Changed on

Return the productivity score (share of focused-active time on productive sites) and the focused-time breakdown by class (productive/unproductive/neutral/unrated/mixed), for a member (user) or across one or more groups (groups), else the whole organization. Domains are classified at report time from each member's effective policy (default catalog + per-campaign overrides). Restricted to organization admins/managers or activity & security report viewers, and gated by the activity-tracking flag.

Request

  • Base URL
    https://app.pixiebrix.com
  • Auth
    none declared

Query parameters

organizationstring uuid required

UUID of the organization to scope the report to.

userstring uuid

Optional member UUID to scope the report to one user.

groupsstring[]

Optional group UUIDs to scope the report; repeated (?groups=a&groups=b) or comma-separated (?groups=a,b).

startstring date-time

Optional ISO-8601 start of the report window (inclusive).

endstring date-time

Optional ISO-8601 end of the report window (exclusive).

Response

organizationstring uuid required
startstring date-time required
endstring date-time required
scorenumber nullable required
total_focused_msinteger required
productive_focused_msinteger required
unproductive_focused_msinteger required
neutral_focused_msinteger required
unrated_focused_msinteger required
mixed_focused_msinteger required

Changes