POST
/
cases
/
stats
/
category-class
Get case statistics by category class
curl --request POST \
  --url https://api.wirespeed.co/cases/stats/category-class \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "days": 123
}'
[
  {
    "categoryClass": "<string>",
    "displayName": "<string>",
    "count": 123,
    "percentage": 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 for chart data (30, 60, or 90)

Response

200 - application/json

Returns case counts grouped by category class

categoryClass
string
required

Category class identifier

displayName
string
required

Display name for the category class

count
number
required

Number of cases in this category class

percentage
number
required

Percentage change from previous period