InputPOST /api/v1/x402/csp-policy-audit
{
"policy": "default-src 'self'; script-src 'self'"
}
Agent reliability and security · agent-reliability-security
Audit a Content-Security-Policy for missing defaults and unsafe script directives. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/csp-policy-audit -m POST -H 'x-delx-source: product-page' --max-amount 0.002 -b '{"policy":"default-src '"'"'self'"'"'; script-src '"'"'self'"'"'"}'
{
"policy": "default-src 'self'; script-src 'self'"
}
{
"schema": "delx/csp-policy-audit/v1",
"risk": "low",
"findings": [],
"directive_count": 2,
"directives": [
"default-src",
"script-src"
]
}
Machine-readable evidence