Overview
AgentScore does not just return a score — it returns a decision. Thedecision object tells you whether a wallet should be allowed to proceed, along with machine-readable reason codes explaining why.
This is the highest-value primitive in the API. Instead of writing your own threshold logic, pass your policy parameters and get back an enforceable result.
How decisions work
When you requestview=full with policy parameters, AgentScore evaluates the wallet against your policy and returns:
allow—trueif the wallet passes all policy checks,falseotherwisereasons— Array of reason codes explaining the decisionpolicy— Echo of the policy inputs used for this decision
Policy parameters
Pass these as query parameters on the reputation endpoint:| Parameter | Type | Description |
|---|---|---|
min_grade | string | Minimum acceptable grade (A, B, C, D, F) |
min_transactions | number | Minimum transaction count required |
Decision logic
The decision is computed deterministically:- Compute the wallet’s score and grade
- Check if the grade meets or exceeds
min_grade - Check if total transactions meet or exceed
min_transactions - If all checks pass,
allow: truewith positive reason codes - If any check fails,
allow: falsewith specific failure reason codes
Reason codes
Positive (allow = true)
| Code | Meaning |
|---|---|
sufficient_transaction_history | Transaction count meets the threshold |
recent_activity | Wallet was active within the recency window |
counterparty_diversity_ok | Wallet interacts with diverse counterparties |
Negative (allow = false)
| Code | Meaning |
|---|---|
insufficient_activity | Too few transactions |
low_diversity | Too few unique counterparties |
stale_activity | No recent transactions |
grade_below_threshold | Grade is below the requested min_grade |
below_min_transactions | Transaction count is below min_transactions |
Integration pattern
The recommended pattern is a simple gate at the entry point of your service:Choosing a policy
| Use case | Suggested policy | Rationale |
|---|---|---|
| Low-stakes browsing | min_grade=D | Allow most wallets, filter obvious spam |
| Standard API access | min_grade=C, min_transactions=3 | Balanced trust requirement |
| Financial transactions | min_grade=B, min_transactions=10 | Higher bar for money movement |
| High-value operations | min_grade=A, min_transactions=50 | Only well-established wallets |
Free tier preview
Free-tier responses include apreview object with non-binding hints:
view=full.