# Delx Commerce HTTP Header Diff

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

Compares two sets of HTTP response headers and returns a structured diff showing added, removed, changed, and unchanged headers with security-sensitive changes highlighted.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/http-header-diff?utm_source=zero.xyz
- Price: $0.001/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-http-header-diff-50e0ed65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gVNrS_VVHjw4UCI4m200e

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-http-header-diff-50e0ed65 -d '<json body>'
```

Example prompt: Compare these two sets of HTTP headers for me — the 'before' set has strict-transport-security set to max-age=60 and content-type set to text/html, and the 'after' set has strict-transport-security set to max-age=31536000 — tell me what changed, what was added or removed, and flag any security-sensitive differences.

## When to prefer this

Choose this endpoint when you need a structured, security-aware diff of two HTTP header snapshots with automatic redaction of credential-like values and explicit flagging of security-sensitive header changes. Ideal for deployment pipelines, monitoring agents, and security audits where a simple text diff would miss security context.

## Known failure modes

- Invalid or non-object input for 'before' or 'after' fields returns an error
- Exceeding 200 properties in either object may be rejected
- Payment not processed — USDC payment via x402 required before result is returned
- Malformed header values may cause unexpected diff results

## How this service works

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

## Output

Returns a JSON object with schema 'delx/util-http-header-diff/v1' containing: 'added' (list of newly added headers), 'removed' (list of deleted headers), 'changed' (list of headers with name, before value, and after value), 'unchanged_count' (integer count of unchanged headers), 'security_sensitive_changes' (list of header names considered security-sensitive that changed), and 'credential_values_redacted' (boolean indicating if credential-like values were masked).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "maxProperties": 200
  },
  "before": {
   "type": "object",
   "maxProperties": 200
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "added": [],
  "schema": "delx/util-http-header-diff/v1",
  "changed": [
   {
    "name": "strict-transport-security",
    "after": "max-age=31536000",
    "before": "max-age=60"
   }
  ],
  "removed": [],
  "unchanged_count": 1,
  "credential_values_redacted": true,
  "security_sensitive_changes": [
   "strict-transport-security"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-http-header-diff-50e0ed65/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)
