Skip to main content

Quick Start Guide

Get Simplr running in your application in under 5 minutes.

Step 1: Get Your API Key

  1. Sign up or log in
  2. Navigate to Settings > API Keys
  3. Create a new API key
  4. Copy your secret key (starts with sk_)
Keep Your Secret Key Safe

Never expose your secret API key in client-side code. It should only be used in your backend.

Step 2: Install the SDK (Frontend)

npm install @simplr-ai/js

Step 3: Collect Device Signals (Frontend)

import SimplrFraud from '@simplr-ai/js';

// Initialize the SDK
const simplr = new SimplrFraud({
collectBiometrics: true,
autoStart: true
});

// On form submission, collect signals
async function onSubmit(email) {
const signals = await simplr.collect();

// Send signals to your backend
await fetch('/api/signup', {
method: 'POST',
body: JSON.stringify({
email,
signals: signals
})
});
}

Step 4: Call the API (Backend)

const response = await fetch('https://api.simplr-ai.com/v1/check', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.SIMPLR_API_KEY
},
body: JSON.stringify({
email: 'user@example.com',
device: signals.device,
behavior: signals.behavior
})
});

const result = await response.json();
console.log('Risk Score:', result.data.risk_score);

Step 5: Handle the Response

{
"success": true,
"content": {
"check_id": "chk_abc123",
"risk_score": 25,
"risk_level": "medium",
"signals": {
"email": {
"is_disposable": false,
"has_breaches": true,
"breach_count": 2,
"domain_age_days": 8520
},
"device": {
"is_new": true,
"is_headless": false,
"fingerprint_hash": "fp_abc123"
}
},
"recommendation": "challenge"
}
}

Risk Levels

ScoreLevelRecommended Action
0-24LowAllow
25-49MediumAllow with monitoring
50-69HighChallenge (2FA, CAPTCHA)
70-100CriticalBlock or manual review

Next Steps