API Reference
Decision Engine API
Real-time governance decisions for agent actions.
Decision Engine API
The Decision Engine is the core of ABS Core. Call POST /v1/decide before your agent executes any action to get a governance verdict.
Evaluate Action
POST /v1/decide
Evaluates an agent's intended action against all active policies and returns a verdict synchronously.
Request
{
"agent_id": "payment-bot-01",
"tenant_id": "fintech-corp",
"action": {
"type": "api_call",
"target": "https://api.stripe.com/v1/charges",
"method": "POST",
"payload": {
"amount": 50000,
"currency": "BRL"
}
},
"context": {
"session_id": "sess_8f2k9a",
"risk_budget": 100
}
}Response
{
"envelope": {
"decision_id": "dec_7f2b9a4c118d",
"execution_status": "ALLOW",
"risk_score": 35,
"latency_ms": 12,
"trace_id": "trace_a3b2c1d0e9f8",
"tenant_id": "fintech-corp",
"policies_evaluated": 3,
"timestamp": "2026-02-19T22:00:00Z"
},
"trace_id": "trace_a3b2c1d0e9f8"
}Verdict Values
| Status | Meaning |
|---|---|
ALLOW | Action approved — proceed |
DENY | Action blocked — policy violation |
REQUIRE_APPROVAL | Held for human review |
ESCALATE | Forwarded to compliance team |
The Decision Engine evaluates in < 5ms at the Cloudflare Edge. Policies are evaluated in parallel using the WASM kernel.
Query Audit Log
GET /admin/decisions?tenantId=my-org&limit=100
Returns the last N decisions for the authenticated tenant.
{
"data": [
{
"decision_id": "dec_7f2b9a4c118d",
"tenant_id": "fintech-corp",
"execution_status": "ALLOW",
"risk_score": 35,
"event_type": "api_call",
"trace_id": "trace_a3b2c1d0e9f8",
"created_at": "2026-02-19T22:00:00Z"
}
]
}