# Delx Commerce — WWW-Authenticate Header Parser

> Delx Commerce — WWW-Authenticate Header Parser 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).

Parses a WWW-Authenticate HTTP header string into structured scheme and parameter components, returning verifiable results with no data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/www-authenticate-parse?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-www-authenticate-header-parser-746db294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H-XFyrRnk5vz7N9IHsUvl

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-www-authenticate-header-parser-746db294 -d '<json body>'
```

Example prompt: Can you parse this WWW-Authenticate header for me and tell me the scheme, realm, and any error parameters: 'Bearer realm="api", error="invalid_token", error_description="The token has expired"'?

## When to prefer this

Use this endpoint when an AI agent or automated workflow needs to programmatically interpret a WWW-Authenticate header — especially in x402 payment flows or 401/402 challenge handling — and requires verifiable, auditable parsing with a known fixed cost ($0.001 USDC) and no data retention. Prefer this over rolling your own parser when you need cryptographic evidence of the input processed (SHA-256 hash) and a guarantee of no external calls or data storage.

## Known failure modes

- Malformed or empty header string may result in an empty parameters map or parsing error
- Header exceeding 8192 characters will be rejected
- Non-standard or custom authentication schemes may not be fully decomposed
- Missing or null header input returns a validation 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 containing the parsed WWW-Authenticate header value broken into its scheme/value string and a parameters map of key-value pairs extracted from the header. Also includes an evidence block confirming no data was retained (retained: false), the SHA-256 hash of the input for auditability, and a status field ('pass') indicating successful parsing. The operation field identifies this as a web_reliability utility.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to Www Authenticate Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "value": "bearer realm=api, error=invalid_token",
   "parameters": {}
  },
  "schema": "delx/util-www-authenticate-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "4214e8b22b696222b9f2658c1f35c91515b02b4e02228ba03d6c3d0f684fac3e",
   "external_calls": 0
  },
  "operation": "web_reliability:www_authenticate_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-www-authenticate-header-parser-746db294/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)
