Skip to main content
POST
/
cases
/
mttc
Calculate mean time to contain
curl --request POST \
  --url https://api.wirespeed.co/cases/mttc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": "<string>",
  "endDate": "<string>",
  "days": 123
}
'
{
  "average": 123,
  "unit": "seconds",
  "change": 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

200 - application/json

Returns the average seconds it takes to contain a case

average
number
required
unit
enum<string>
required
Available options:
seconds,
milliseconds
change
number
required