# Delx Commerce Cache Policy Audit API

> Delx Commerce Cache Policy Audit API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Audits HTTP response headers to identify missing or misconfigured caching directives and returns a structured risk assessment with specific findings

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cache-policy-audit?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-cache-policy-audit-api-c8ebc002
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1Z1O9UAqE5lBvqt1wAeg1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-cache-policy-audit-api-c8ebc002 -d '<json body>'
```

Example prompt: Can you audit these HTTP response headers and tell me if there are any cache policy problems — specifically check if Cache-Control, ETag, and Vary are set correctly: {"Content-Type": "application/json", "Cache-Control": null}?

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call audit of HTTP response headers specifically for caching correctness — especially useful in CI/CD pipelines, agent-driven infrastructure reviews, or pre-deployment checks where no signup or subscription is desired and USDC micropayment via x402 is acceptable.

## Known failure modes

- Empty or malformed headers object returns incomplete findings
- Missing required payment (x402) results in 402 Payment Required response
- Headers with non-string values may be rejected by schema validation
- Ambiguous or conflicting cache directives may yield inconclusive risk rating

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a risk rating (e.g. 'review'), a schema version identifier, a list of specific findings such as 'cache_control_missing', and boolean flags indicating whether ETag and Vary headers are present, plus the raw Cache-Control value if found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "headers": {
   "type": "object",
   "additionalProperties": {
    "type": "string"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risk": "review",
  "schema": "delx/cache-policy-audit/v1",
  "findings": [
   "cache_control_missing"
  ],
  "etag_present": false,
  "vary_present": false,
  "cache_control": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cache-policy-audit-api-c8ebc002/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
