Skip to content

feat: add queryTeamUsageStats API endpoint#159

Merged
daksh-r merged 2 commits intomainfrom
feat/add-query-team-usage-stats-api
Feb 17, 2026
Merged

feat: add queryTeamUsageStats API endpoint#159
daksh-r merged 2 commits intomainfrom
feat/add-query-team-usage-stats-api

Conversation

@daksh-r
Copy link
Contributor

@daksh-r daksh-r commented Feb 16, 2026

Add support for querying team usage statistics via POST /stats/team_usage.

The new method supports:

  • month: Query stats for a specific month (YYYY-MM format)
  • start_date/end_date: Query stats for a date range (YYYY-MM-DD format)
  • limit/next: Cursor-based pagination

Returns 16 metrics per team including daily activity, peak usage, and rolling/cumulative statistics.

Daksh and others added 2 commits February 16, 2026 13:08
Add support for querying team usage statistics via POST /stats/team_usage.

The new method supports:
- month: Query stats for a specific month (YYYY-MM format)
- start_date/end_date: Query stats for a date range (YYYY-MM-DD format)
- limit/next: Cursor-based pagination

Returns 16 metrics per team including daily activity, peak usage,
and rolling/cumulative statistics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The API now returns shadowed=true when sending a message as a shadow
banned user. Updated test expectation to match current behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

$response = $this->channel->sendMessage(["text" => "hello world"], $this->user1["id"]);
$this->assertFalse($response["message"]["shadowed"]);
$this->assertTrue($response["message"]["shadowed"]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daksh-r daksh-r marked this pull request as ready for review February 17, 2026 11:55
@daksh-r daksh-r merged commit 3dc8db3 into main Feb 17, 2026
4 checks passed
@daksh-r daksh-r deleted the feat/add-query-team-usage-stats-api branch February 17, 2026 12:05
@github-actions github-actions bot mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments