Risk Score — Lite Implementation
This recipe shows how to call the Fraud API to combine email, phone, IP and device in a single request and apply a simple rule:
- If network_score > 80 -> BLOCK
- If network_score between 40-80 and breach_count > 0 -> REVIEW
- Else -> ACCEPT
// pseudocode
result = callFraudAPI({email, phone, ip, device});
if (result.risk_scores.network > 80) return 'BLOCK';
if (result.risk_scores.network >= 40 && result.breach_details.number_of_breaches > 0) return 'REVIEW';
return 'ACCEPT';
---
## File placeholders (templates)
For every other `.md` / `.mdx` file in the tree above, create a lightweight template by copying this snippet and updating titles/paths accordingly:
```md
# <PAGE TITLE>
Intro paragraph describing the feature, API or guide.
:::info[]
Notes and tips.
:::
<elements-api apiDescriptionUrl="/openapi/<corresponding-openapi-file>.yaml" router="hash" />
## Example
```bash
# curl example
---
## How to write files quickly on your VM (examples)
Use `cat` and a here-doc to create files quickly (good for many files):
```sh
mkdir -p /atna/atna-docs/docs/api-reference/email
cat > /atna/atna-docs/docs/api-reference/email/email-v3.mdx <<'EOF'
[PASTE THE CONTENT FROM THIS DOCUMENT FOR email-v3.mdx]
EOF
Or open vi and paste the block.