Skip to main content
POST
/
cases
/
count
/
by-team
Get case counts grouped by team
curl --request POST \
  --url https://api.wirespeed.co/cases/count/by-team \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "days": 123,
  "limit": 123
}
'
{
  "data": [
    {
      "teamId": "<string>",
      "teamName": "<string>",
      "count": 123,
      "criticalCount": 123,
      "highCount": 123
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
days
number
required

Number of days to look back (7, 30, 90, or 365)

limit
number

Max number of teams to return (sorted by case count desc). Omit for all.

Response

200 - application/json
data
object[]
required
total
number
required

Total number of teams before limiting