# Delx Commerce — Origin Header Normalize

> Delx Commerce — Origin Header 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).

Parses and normalizes an HTTP Origin header value into structured components (host, scheme, effective port), verifiably and without data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/origin-header-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-origin-header-normalize-78b1ba98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KmA80qQkX-0rg0zKVbled

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-origin-header-normalize-78b1ba98 -d '<json body>'
```

Example prompt: Parse and normalize this origin header for me — 'https://app.example.com' — and tell me the host, scheme, and effective port.

## When to prefer this

Choose this endpoint when you need a verifiable, pay-per-call, no-signup way to normalize and parse HTTP Origin header strings into structured components — particularly in agent workflows that require cryptographic evidence of non-retention and zero external calls. Prefer it over rolling your own URL parsing when auditability and proof of processing are required.

## Known failure modes

- Invalid or malformed origin string returns an error or failed status
- Origin string exceeding 8192 characters is rejected
- Non-URL strings (e.g. bare hostnames without scheme) may produce incomplete parsing results
- Payment failure via x402 protocol causes the request to be rejected before processing

## 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 the parsed origin components: host (e.g. 'example.com'), scheme (e.g. 'https'), effective port (e.g. 443), and the normalized origin string. Also includes evidence metadata: a SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "host": "example.com",
   "origin": "https://example.com",
   "scheme": "https",
   "effective_port": 443
  },
  "schema": "delx/util-origin-header-normalize/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "07b2bd8501ded3c8a0fda45530946ed82acb0010a7632e08f86773e43703f622",
   "external_calls": 0
  },
  "operation": "web_reliability:origin_header_normalize"
 }
}
```

## More

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