{
  "format": "delx/intent-card/v1",
  "id": "csp-policy-audit-api",
  "intent": "CSP Policy Audit for an agent workflow",
  "title": "CSP Policy Audit API for agents",
  "description": "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.",
  "keywords": [
    "CSP Policy Audit API",
    "CSP Policy Audit for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/csp-policy-audit-api",
  "machine_url": "https://commerce.delx.ai/intents/csp-policy-audit-api.json",
  "recommendation": {
    "tool_name": "util_csp_policy_audit",
    "service_name": "Delx CSP Policy Audit",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/csp-policy-audit",
    "price_usdc": "0.002",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "policy": {
          "type": "string",
          "maxLength": 100000
        }
      },
      "required": [
        "policy"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "policy": "default-src 'self'; script-src 'self'"
    },
    "example_output": {
      "schema": "delx/csp-policy-audit/v1",
      "risk": "low",
      "findings": [],
      "directive_count": 2,
      "directives": [
        "default-src",
        "script-src"
      ]
    },
    "agentcash": {
      "buy": "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'\"'\"'\"}'",
      "max_amount_usdc": "0.002"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-csp-policy-audit-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/csp-policy-audit"
  }
}
