Skip to main content
GET
/
api
/
detections
/
{id}
/
stats
cURL
curl -X GET "https://app.cotool.ai/api/detections/:id/stats" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "runsLast7d": 1,
  "runsLast30d": 1,
  "runningRunsLast30d": 1,
  "hitsLast30d": 1,
  "avgEvalScore30d": 123
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

id
string<uuid>
required

Detection UUID

Response

Successful response

runsLast7d
integer
required

Total completed runs in the last 7 days

Required range: x >= 0
runsLast30d
integer
required

Total completed runs in the last 30 days

Required range: x >= 0
runningRunsLast30d
integer
required

Active runs in the last 30 days (running or waiting)

Required range: x >= 0
hitsLast30d
integer
required

Persisted detection hits in the last 30 days

Required range: x >= 0
avgEvalScore30d
number | null
required

Average LLM judge eval score (0-100) over last 30 days; null when no scored runs