# Delx Commerce — Location Header Resolve

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

Resolves a relative or ambiguous HTTP Location header value into an absolute URL given a base URL, with verifiable in-memory processing and no data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/location-header-resolve?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-location-header-resolve-8ea4f01a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T3BoqhvK_uweVmG5ceIkl

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-location-header-resolve-8ea4f01a -d '<json body>'
```

Example prompt: Can you resolve this Location header value '/login' against the base URL 'https://example.com' to get the full absolute redirect URL?

## When to prefer this

Choose this endpoint when you need a verifiable, privacy-preserving URL resolution with an audit trail (input hash, no retention guarantee) and are already operating in an x402 micropayment context. Prefer it over home-rolled URL joining when you need cryptographic proof of the input processed and confirmation that no external calls were made — useful in compliance-sensitive or agent-to-agent trust scenarios.

## Known failure modes

- Malformed or unparseable base_url returns an error status
- Location header value that cannot be meaningfully resolved against the base URL yields an error
- Input strings exceeding 8192 characters are rejected
- Invalid URL schemes may cause resolution failure
- Payment via x402 must succeed before result is returned; failed payment yields no result

## 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 resolved absolute URL under result.resolved_url, operation status ('pass'), and an evidence block confirming no data was retained (retained: false), zero external calls made, and the SHA-256 hash of the input for verifiability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base_url": {
   "type": "string",
   "maxLength": 8192,
   "description": "Base URL supplied to Location Header Resolve; used only for this bounded calculation and processed in memory without retention."
  },
  "location": {
   "type": "string",
   "maxLength": 8192,
   "description": "Location supplied to Location Header Resolve; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "resolved_url": "https://example.com/login"
  },
  "schema": "delx/util-location-header-resolve/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "b195fccec2384b3775b4cdbcc370ff5f1189afe143f8e39e6286a1cbbe96c94a",
   "external_calls": 0
  },
  "operation": "web_reliability:location_header_resolve"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-location-header-resolve-8ea4f01a/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)
