Website →

Handle decisions

Implementing allow, challenge, review, and block in a signup flow — including the fail-open pattern.

Decisions in a signup flow

Every check returns exactly one decision. Wire it into signup like this:

DecisionWhat to do
allowProceed with the signup
challengeAsk for extra proof — CAPTCHA or an email/OTP verification step
reviewCreate the account but hold it for manual review (flag it, don't block)
blockReject 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.