{
  "format": "delx/intent-card/v1",
  "id": "retention-policy-check-api",
  "intent": "Retention Policy Check for an agent workflow",
  "title": "Retention Policy Check API for agents",
  "description": "Compare declared retention with a maximum policy window. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and production controls.",
  "keywords": [
    "Retention Policy Check API",
    "Retention Policy Check for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/retention-policy-check-api",
  "machine_url": "https://commerce.delx.ai/intents/retention-policy-check-api.json",
  "recommendation": {
    "tool_name": "util_retention_policy_check",
    "service_name": "Delx Retention Policy Check",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/retention-policy-check",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "retention_days": {
          "description": "Input field: retention_days.",
          "type": "number"
        },
        "max_days": {
          "description": "Input field: max_days.",
          "type": "number"
        }
      },
      "required": [
        "retention_days",
        "max_days"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "retention_days": 30,
      "max_days": 14
    },
    "example_output": {
      "schema": "delx/util-retention-policy-check/v1",
      "compliant": false,
      "retention_days": 30,
      "max_days": 14,
      "excess_days": 16,
      "recommendation": "reduce_or_document_exception"
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/retention-policy-check -m POST -H 'x-delx-source: intent-card-retention-policy-check-api' --max-amount 0.003 -b '{\"retention_days\":30,\"max_days\":14}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-retention-policy-check-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/retention-policy-check"
  }
}
