Core Concepts
How Scoring Works
From transaction event to riskScore and ALLOW/REVIEW/BLOCK decision in under 200 ms.
Scoring pipeline
When you call POST /v1/transactions/score, MaiGuard runs a synchronous evaluation pipeline:
- Ingest — transaction payload, device context, and metadata are validated and normalized.
- Enrich — velocity counters, entity graph lookups, onboarding context, and list matches are applied.
- Evaluate — active rules, ML models, and pattern analysis run in priority order.
- Decide — the highest-priority matched rule action determines ALLOW, REVIEW, or BLOCK.
- Respond — riskScore, decision, matched rules, and optional shadowEvaluation are returned.
Signal dimensions
MaiGuard evaluates signals across six dimensions. Richer payloads produce more accurate scores — see payload richness tiers in the API reference.
- →Transaction behavior — amount, velocity, and patterns
- →Device and network — IP reputation, fingerprint, deviceSessionId
- →Authentication — login context and session anomalies
- →Counterparty risk — beneficiary and receiver signals
- →Geo-location consistency
- →Historical account behavior
Response output
Every scoring response includes a riskScore (0–100, higher = riskier), a decision, and explanatory matchedRules. See the glossary for decision state definitions.
Latency
MaiGuard targets sub-200 ms median response time for synchronous scoring, suitable for real-time payment flows. Use webhooks or batch scoring for high-throughput async workloads.
Tip
Include
deviceSessionId from the JavaScript SDK to unlock behavioral biometrics and device linkage signals.Was this page helpful?