---
title: "Permission-scoped Ops hub counts"
method: GET
path: "/api/admin/ops/counts"
tags: ["Admin"]
---

# Permission-scoped Ops hub counts

`GET /api/admin/ops/counts`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/admin/ops/counts`
- Auth: HTTP bearer

Single authenticated aggregate for the native Ops hub (d-sports-engage-native#1238) so tiles do not waterfall the live, reports and submissions endpoints. data contains only the groups the caller may see: live, submissions and team require canAccessTeam on the resolved team; reports requires isModerator and mirrors the reports list visibility (non-superadmin moderators count only escalatedToSuper: false rows; superadmins count pending and escalated rows). Unauthorized groups are omitted, never zeroed; a caller allowed none still receives 200 { success: true, data: {} }. Optional teamId accepts a Team id or slug (1-128 chars trimmed); a supplied ref that resolves to nothing is 400 VALIDATION_ERROR. submissions.awaiting counts only the two human-review statuses preview_ready and pending_platform_review for the team. A live-read failure is 500, never reported as active: false. Per-user rate limit admin.ops.counts 60/60s fails closed (429 RATE_LIMITED with Retry-After; 500 when the limiter store is down). Every response, including errors, is Cache-Control: private, no-store.

## Query parameters

- `teamId` string

## Response `200`

The counts the caller is authorized to see; may be an empty object.

- object
  - `success` true, required
  - `data` object, required
    - `live` object
      - `active` boolean, required
      - `sessionId` string, nullable, required
    - `reports` object
      - `pending` integer, required
    - `submissions` object
      - `awaiting` integer, required
    - `team` object
      - `id` string, required
      - `name` string, required

## Other responses

- `400`: Invalid teamId (blank or over 128 chars) or a supplied ref that resolves to no team (VALIDATION_ERROR).
- `401`: Authentication required (UNAUTHORIZED).
- `429`: Per-user rate limit exceeded (RATE_LIMITED, admin.ops.counts 60/60s).
- `500`: Live helper, count query or rate-limiter storage failure (INTERNAL_ERROR); the limiter fails closed.

## Changes

- **2026-11-18** `6de639c52609`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/admin/ops/counts/get.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
