Skip to main content
GET
https://api-production-56df.up.railway.app
/
scores
/
{customer_id}
/
summary
curl -X GET "https://api-production-56df.up.railway.app/scores/cust_8f2e4a91-bb3c-4d17-a1e0-6c9f3d5b7e82/summary" \
  -H "X-API-Key: your-api-key"
{
  "customer_id": "cust_8f2e4a91-bb3c-4d17-a1e0-6c9f3d5b7e82",
  "total_events": 1247,
  "avg_score": 28.4,
  "none_count": 312,
  "low_count": 589,
  "medium_count": 251,
  "high_count": 78,
  "critical_count": 17
}
Requires X-API-Key header for authentication.

Path Parameters

customer_id
string
required
UUID of the customer whose score summary to retrieve.

Response

customer_id
string
The customer UUID.
total_events
integer
Total number of scored events for this customer.
avg_score
number
Average risk score across all events (0.0 to 100.0).
none_count
integer
Number of events with none risk level (score 0-10).
low_count
integer
Number of events with low risk level (score 11-30).
medium_count
integer
Number of events with medium risk level (score 31-60).
high_count
integer
Number of events with high risk level (score 61-80).
critical_count
integer
Number of events with critical risk level (score 81-100).
curl -X GET "https://api-production-56df.up.railway.app/scores/cust_8f2e4a91-bb3c-4d17-a1e0-6c9f3d5b7e82/summary" \
  -H "X-API-Key: your-api-key"
{
  "customer_id": "cust_8f2e4a91-bb3c-4d17-a1e0-6c9f3d5b7e82",
  "total_events": 1247,
  "avg_score": 28.4,
  "none_count": 312,
  "low_count": 589,
  "medium_count": 251,
  "high_count": 78,
  "critical_count": 17
}