> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wirespeed.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get case counts grouped by team



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/cases/count/by-team
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/cases/count/by-team:
    post:
      tags:
        - Cases
      summary: Get case counts grouped by team
      operationId: CasesController_countByTeam
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaseCountByTeamDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseCountByTeamResponse'
      security:
        - bearer: []
components:
  schemas:
    CaseCountByTeamDto:
      type: object
      properties:
        days:
          type: number
          description: Number of days to look back (7, 30, 90, or 365)
        limit:
          type: number
          description: >-
            Max number of teams to return (sorted by case count desc). Omit for
            all.
      required:
        - days
    CaseCountByTeamResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CaseCountByTeam'
        total:
          type: number
          description: Total number of teams before limiting
      required:
        - data
        - total
    CaseCountByTeam:
      type: object
      properties:
        teamId:
          type: string
        teamName:
          type: string
        count:
          type: number
        criticalCount:
          type: number
        highCount:
          type: number
        mediumCount:
          type: number
      required:
        - teamId
        - teamName
        - count
        - criticalCount
        - highCount
        - mediumCount
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````