Radar
Get User Risk Score
GET
cURL
Use this endpoint to retrieve a user’s risk level using either
email or id.
How it works
White Circle can assess a user’s Risk Score by correlating their recent sessions with policy violations. To enable this:- Send a Check Session request and include the user’s identifier in
metadata.user(eitheridoremail). - The Radar service aggregates the user’s recent history and determines whether their behavior indicates elevated risk.
- Query
GET /api/radar/riskwith the sameidoremailto fetch the current Risk Score.
Risk scoring is based on recent violations linked to the same user identifier. If we detect serious or repeated violations in the recent window, we return an elevated risk score.
Adding user identity to Check Session
Includemetadata.user.id or metadata.user.email in your Check Session payload. This lets Radar associate policy outcomes with a specific user over time.
Fetching the Risk Score
Use this endpoint to retrieve the current risk level for a user:GET /api/radar/risk?email=user@example.comGET /api/radar/risk?id=user-123
Authorizations
API Key required. Format: Bearer wc-your-api-key
Headers
API Version
Query Parameters
User email address (provide either email or id, not both)
External user ID (provide either email or id, not both)
Response
Success
Available options:
normal, elevated, severe 