Example inputPOST /api/v1/x402/csp-policy-audit
{
"policy": "default-src 'self'; script-src 'self'"
}
Portable intent card · 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.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/csp-policy-audit -m POST -H 'x-delx-source: intent-card-csp-policy-audit-api' --max-amount 0.002 -b '{"policy":"default-src '"'"'self'"'"'; script-src '"'"'self'"'"'"}'
{
"policy": "default-src 'self'; script-src 'self'"
}
{
"intent": "CSP Policy Audit for an agent workflow",
"tool_name": "util_csp_policy_audit",
"price_usdc": "0.002",
"machine_url": "https://commerce.delx.ai/intents/csp-policy-audit-api.json"
}
Portable and inspectable