POST /api/v1/assess from your backend at the moment of decision — before capturing a card, releasing a transfer, or completing a sensitive action.
Use
$CLAUSUM_API_BASE from Clausum support — not a guessed hostname. See Access & environments.Where to call it
Collect context
Gather transaction, identity, payment method, device, and (optionally) behavioral data. Use the browser SDK to capture device and behavior automatically.
Assess server-side
From your backend, call
/assess with your secret key. Do not call it with a secret key from the browser.Minimum request
Onlyamount and currency are required:
Recommended request
Send as much as you have — every field unlocks more signals:Full example
Best practices
Always assess server-side for capture decisions
Always assess server-side for capture decisions
The browser SDK is great for collecting signals and pre-checks, but the authoritative decision that gates money movement should be made from your backend with a secret key.
Set a timeout and fail open
Set a timeout and fail open
Use a short timeout (1–2s). If Clausum is unreachable, default to your normal flow and log it. Blocking legitimate customers is usually worse than missing one assessment.
Persist the session_id and signals
Persist the session_id and signals
Store
session_id, risk_score, and signals with the order. You’ll need them for disputes and fraud reports.Send amounts consistently
Send amounts consistently
Decide on a unit (smallest currency unit / cents is recommended) and use it everywhere so amount-based signals and limits behave predictably.
Validate in Simulación first
Validate in Simulación first
After changing rules, run scenarios in the dashboard Simulación view and confirm Panel metrics before routing production traffic.