{"uid":"cap_2Q9nzog7eeVi4VKoiA0iR","slug":"location-header-resolve-095ed0e3","name":"Location Header Resolve","description":"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…","url":"https://api.delx.ai/api/v1/x402/location-header-resolve","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BcdCx9EqwuaA7FEO9TRh0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves a relative Location header value against a base URL to produce a normalized absolute URL with pass/advisory validation status.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Redirect safety check before following","prompt":"Before my agent follows this redirect, resolve the Location header value '../auth/callback' against the base URL 'https://app.myservice.com/login' and tell me if the resulting URL is safe to accept."},{"title":"Cache key normalization for redirect responses","prompt":"I need to normalize the Location header '/v2/users/profile' against 'https://api.example.com/v1/login' into a canonical absolute URL before I store it in my redirect cache."},{"title":"Retry logic URL resolution","prompt":"My HTTP client got a 302 with Location '/retry-endpoint' from 'https://payments.provider.io/submit' — can you compute the full absolute URL I should retry against?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:12:06.551Z","isFirstParty":false}