---
title: "Get user activity ranking"
method: GET
path: "/analytics/activity-users"
tags: ["Analytics AI — Analytics & BI"]
---

# Get user activity ranking

`GET /analytics/activity-users`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/analytics/activity-users`
- Auth: HTTP bearer

Rank users by uploads and document revisions in the selected time period (not login events).

## Query parameters

- `period` '7d' | '30d' | '90d' | '365d' | 'all'
- `workspace_id` number

## Response `200`

Success

- object
  - `_billing` object
    - `credits` object
      - `total_monthly` integer
      - `remaining_monthly` integer
      - `credit_source` string
      - `api_handler` string
      - `tier_info` object
        - `tier` string
        - `name` string
        - `initial_credits` integer
        - `price_monthly` integer
        - `price_overage_per_credit` integer
      - `notice` string
      - `renewal_days` integer
      - `subscription_status` string
    - `job` object
      - `api_job_name` string
      - `app` string
      - `action` string
      - `default_credits` integer
      - `token` string
      - `credits_billed` integer
      - `pricing` object
        - `credits_per_unit` integer
        - `unit` string
        - `unit_count` integer
        - `addons` string
    - `requests` object
      - `limits` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `current` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `remaining` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `next_possible_request_seconds` integer
    - `remaining_credits` integer
    - `total_monthly` integer
    - `effective_token` string
    - `account_id` integer
    - `plan` object
      - `tier` string
      - `name` string
    - `user` object
      - `ip` string
  - `date_basis` string
  - `metric_basis` string
  - `period` string
  - `processing_time` string
  - `scope_contract` string
  - `status` string
  - `user_count` integer
  - `users` unknown[]
    - unknown
  - `workspace_id` string
  - `workspace_scope` string

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
