Skip to main content
GET
/
analytics
/
anomalies
Detect anomalies
curl --request GET \
  --url https://api.solarsentra.io/v1/analytics/anomalies \
  --header 'Authorization: Bearer <token>'
{
  "walletId": "wlt_abc123def456",
  "anomalies": [
    {
      "id": "anom_abc123",
      "type": "unusual_volume",
      "severity": "medium",
      "description": "Transaction volume 450% above normal",
      "transaction": {
        "signature": "<string>",
        "amount": 123,
        "timestamp": "2023-11-07T05:31:56Z"
      },
      "detectedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "riskScoreChange": 12,
  "recommendation": "Monitor closely for next 24 hours"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Include the token in the Authorization header

Query Parameters

walletId
string
required
Example:

"wlt_abc123def456"

timeRange
enum<string>
default:7d

Time range for anomaly detection

Available options:
24h,
7d,
30d

Response

200 - application/json

Anomalies detected successfully

walletId
string
Example:

"wlt_abc123def456"

anomalies
object[]
riskScoreChange
number
Example:

12

recommendation
string
Example:

"Monitor closely for next 24 hours"

I