Integration
One snippet. Any web flow.
Add Leonix to your origination portal, account opening form, or login page. The sandbox key below gives you live signals immediately.
Add before </body>
<script src="https://cdn.leonix.io/fraudwidgetV1.js" data-tenant-key="YOUR_TENANT_KEY" data-api-base="https://fraud-engine-prod-v3-794477191755.us-central1.run.app" data-fpjs-public-key="lybk8D8ZmpCZhhwO8gvZ" data-fpjs-endpoint="https://cdn.leonix.io/fpjs"> </script>
React to the decision
Listen for fraudengine:ready to act on the risk decision in your application.
Handle the result
window.addEventListener('fraudengine:ready', (e) => {
const { decision, score, reasons } = e.detail;
if (decision === 'block') {
// halt the application flow
}
if (decision === 'review') {
// route to manual underwriting queue
}
});
Response shape
{
"decision": "block",
"risk_score": 0.92,
"reasons": [
"R24_BAD_BOT",
"R28_ANTI_DETECT_OR_NODRIVER"
],
"agent": {
"scenario_type": "synthetic_identity",
"severity": "critical",
"recommended_action": "block_and_flag"
}
}
