Stop worrying about what your AI agents spend. One API call tells you if a purchase is safe, risky, or fraud — before the money moves. Built for production, ready in minutes.
Send transaction details to POST /v1/evaluate. Get back a decision, risk score, factor breakdown, and compliance status. That's it.
from trustflow import TrustFlowClient
client = TrustFlowClient(api_key="tf_live_a1b2c3...")
result = client.evaluate(
amount=349.99,
category="electronics",
merchant_id="amazon_bot",
merchant_trust_score=0.92,
)
if result.decision == "APPROVED":
process_payment(result.trace_id)
elif result.decision == "STEP_UP_REQUIRED":
request_user_confirmation()
else:
log_declined(result.reason_text)
curl -X POST https://api.trust-flow.dev/v1/evaluate \
-H "Authorization: Bearer tf_live_a1b2c3..." \
-H "Content-Type: application/json" \
-d '{
"amount": 349.99,
"currency": "USD",
"category": "electronics",
"merchant_id": "amazon_bot",
"merchant_trust_score": 0.92,
"user_id": "user_456"
}'
const res = await fetch("https://api.trust-flow.dev/v1/evaluate", {
method: "POST",
headers: {
"Authorization": `Bearer ${apiKey}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 349.99,
category: "electronics",
merchant_id: "amazon_bot",
merchant_trust_score: 0.92,
}),
});
const { decision, risk_score } = await res.json();
{
"decision": "APPROVED",
"risk_score": 32.5,
"risk_level": "MEDIUM",
"sca_required": false,
"trace_id": "tf-a98eacf5-677",
"factors": [/* 7 weighted factors */]
}
A single score from 0 to 100 tells you how risky each purchase is. We look at amount, merchant, spending patterns and more — so you don't have to.
European payment rules (PSD2/SCA) are built in. We flag when extra authentication is needed and when it isn't — you stay compliant without reading regulations.
Decisions come back in under 50 milliseconds — faster than a blink. Your users never wait, and your agents keep working at full speed.
Every decision comes with a clear explanation and a searchable history. When something goes wrong — or when auditors ask — you have all the answers.
Set spending limits, block categories, or adjust how strict the system is. Every team gets its own private setup — no surprises, no shared data.
Drop our SDK into your app and you're protected. Works with Python, Node.js, and the browser — or call our API directly from any language.
Get your API key in 10 seconds. Free tier included — no credit card, no sales call, no waitlist.
Before your agent buys something, send us the details. We tell you if it's safe in less than 50ms.
Approve, block, or ask for extra verification — based on our recommendation. Every decision is logged automatically.
Start free, scale when ready. All plans include the full governance engine.
For prototyping and evaluation
For production workloads
Unlimited scale, dedicated support
Drag the slider to match your expected evaluation volume.
Recommended plan: Pro
Get your API key instantly. No credit card required.