# Location Header Resolve

> Location Header Resolve is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Resolves a relative Location header value against a base URL to produce a normalized absolute URL with pass/advisory validation status.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/location-header-resolve
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/location-header-resolve-095ed0e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Q9nzog7eeVi4VKoiA0iR

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

Example prompt: Can you resolve this relative Location header '/dashboard/home' against the base URL 'https://example.com/api/v2/' and tell me whether the resulting absolute URL passes validation?

## When to prefer this

Choose this endpoint when you need a deterministic, stateless, in-memory resolution of a relative HTTP Location header against a known base URL — especially before accepting, caching, retrying, or following a redirect. Prefer this over manual URL string concatenation when you need normalized output with an explicit pass/advisory safety signal and versioned JSON evidence for audit trails.

## Known failure modes

- Invalid or malformed base_url causing resolution failure
- Relative Location value that cannot be resolved against the given base
- base_url or location exceeding 8192 character limit
- Missing required input fields returning validation error
- Location value that is already absolute and conflicts with base URL scheme/host

## How this service works

Location Header Resolve: Location Header Resolve resolves a relative Location value against a caller-supplied base URL from bounded caller-supplied values without an external provider. Call Location Header Resolve before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Location Header Resolve as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-pa…

## Output

Returns a versioned deterministic JSON object containing: the normalized absolute URL (computed by resolving the relative Location value against the base URL), the computed finding describing the resolution result, and an explicit pass or advisory status indicating whether the resolved URL is acceptable.

## 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/location-header-resolve-095ed0e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
