Skip to main content
POST
/
detection
/
stats
/
severity
Get detection statistics by severity
curl --request POST \
  --url https://api.wirespeed.co/detection/stats/severity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": "<string>",
  "endDate": "<string>",
  "days": 123
}
'
[
  {
    "severity": "INFORMATIONAL",
    "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
startDate
string

Start date (inclusive, ISO8601 string)

endDate
string

End date (inclusive, ISO8601 string)

days
number

Number of days for time-based filtering (1-365). Required by most endpoints unless startDate/endDate provided.

Response

Returns detection counts grouped by severity

severity
enum<string>
required

Detection severity level

Available options:
INFORMATIONAL,
LOW,
MEDIUM,
HIGH,
CRITICAL
count
number
required

Number of detections with this severity

percentage
number
required

Percentage of total detections