# Delx Commerce — HTTP Header Map Normalize

> Delx Commerce — HTTP Header Map Normalize 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).

Normalizes and sanitizes a map of HTTP headers, lowercasing keys, removing hop-by-hop headers, and returning a clean canonical header object.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/header-map-normalize?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-map-normalize-08e4ba23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a36unPfHixUuMIdjg6KPa

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-map-normalize-08e4ba23 -d '<json body>'
```

Example prompt: Can you normalize this set of HTTP headers for me — lowercase the keys and drop any hop-by-hop headers like 'Connection'? The headers are: {'Content-Type': 'application/json', 'Connection': 'keep-alive', 'X-Custom-Header': 'value'}.

## When to prefer this

Choose this endpoint when an agent needs to canonicalize HTTP headers before forwarding, logging, or storing them — especially to remove proxy-specific hop-by-hop headers (Connection, Transfer-Encoding, etc.) and standardize key casing. It is ideal for lightweight, pay-per-call header sanitization without needing to run custom normalization logic. Use it instead of writing your own header-cleaning function when operating in an agent pipeline that already supports x402 micropayments on Base or Solana.

## Known failure modes

- Invalid or non-object 'headers' input may cause a 400 error
- Empty headers object returns ok:true with count:0 and empty headers map
- Network or payment failure returns a 402 or 5xx response
- Malformed JSON body returns a parse error

## 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 'ok' (boolean success flag), 'count' (number of headers retained), 'schema' (versioned schema identifier 'delx/util-header-map-normalize/v1'), 'dropped' (array of header keys that were removed), and 'headers' (the cleaned, normalized header map with lowercased keys and hop-by-hop headers stripped).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "headers": {
   "type": "object",
   "description": "Input field: headers."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "count": 1,
  "schema": "delx/util-header-map-normalize/v1",
  "dropped": [
   "connection"
  ],
  "headers": {
   "content-type": "application/json"
  }
 }
}
```

## More

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