Decisions
Ask whether a payment to a counterparty should proceed.
Returns a verdict, not a number to interpret. Every call is recorded append-only with the scoring model and decision policy versions that produced it, so the answer can be reproduced during a later dispute.
Three ways to call this, and a credential decides between them.
- Anonymous. No credential: served from the free tier while the caller's daily allowance lasts. 100 decisions per caller per UTC day, reported in the Fidren-Free-* response headers. No account, no key, no wallet.
- Enterprise. A key in Authorization: Bearer or X-API-Key. A presented key is authoritative: valid means Enterprise and spends no free allowance; invalid means 401 and stops there. It never falls back to the free tier and never falls back to being charged.
- Agent-native (x402). Paying per decision over x402. Built and settled on Base mainnet, but public charging is currently switched off, so 402 is not returned in production today. See the 402 response below for the exact condition.
The engine is the same on all three. The tier affects access and billing, never the verdict, the score, the confidence or the evidence.
post/v1/decision
Request
- Base URL: https://api.fidren.net
- URL: https://api.fidren.net/v1/decision
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
- none
Request body
Response
A verdict. On the free tier the response also carries the quota headers below; on the Enterprise path it does not.
Changes
No recorded changes to this operation across all 1 revision of this API.