Decisions in a signup flow
Every check returns exactly one decision. Wire it into signup like this:
| Decision | What to do |
|---|---|
allow | Proceed with the signup |
challenge | Ask for extra proof — CAPTCHA or an email/OTP verification step |
review | Create the account but hold it for manual review (flag it, don't block) |
block | Reject the signup outright |
A common progression for a new integration: start by hard-rejecting only
block and reviewing the rest, then tighten further once your stats justify
it.
Fail open in your own code
Treat any non-200 response (or a timeout) as "don't brick my signup", and set a 2–3 second timeout so a slow validation never hangs your form:
async function checkEmail(email) {
try {
const res = await fetch('https://shildmatrix.binomatrix.com/api/v1/check/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.SHILDMATRIX_API_KEY,
},
body: JSON.stringify({ email }),
signal: AbortSignal.timeout(3000),
})
if (!res.ok) return 'unverified' // 402 / 429 / 5xx → decide yourself
const data = await res.json()
if (data.decision === 'block') return 'block'
if (data.decision === 'challenge') return 'challenge'
return 'ok' // allow + review
} catch {
return 'unverified' // timeout / network error
}
}
import os
import requests
def check_email(email: str) -> str:
try:
res = requests.post(
"https://shildmatrix.binomatrix.com/api/v1/check/",
headers={"X-API-Key": os.environ["SHILDMATRIX_API_KEY"]},
json={"email": email},
timeout=3,
)
res.raise_for_status()
decision = res.json()["decision"]
return {"block": "block", "challenge": "challenge"}.get(decision, "ok")
except requests.RequestException:
return "unverified" # timeout / network error → decide yourself
"unverified" means "couldn't check" — in most SaaS flows you let that
signup through (or send it to review) rather than lose a real customer. The
one thing never to do is fail closed and reject everyone because the
validator was down.