{"uid":"cap_SUAGkIE2TCvjntwBsMS6v","slug":"www-authenticate-header-parser-a83fdbbf","name":"WWW-Authenticate Header Parser","description":"Www Authenticate Parse: Www Authenticate Parse parses an authentication challenge scheme and bounded parameters from bounded caller-supplied values without an external provider. Call Www Authenticate Parse 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 Www Authenticate Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stat…","url":"https://api.delx.ai/api/v1/x402/www-authenticate-parse","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"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_FsH4ywcx-KhFh1WiaBC1B","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":"Parses and normalizes the WWW-Authenticate HTTP challenge header, extracting the authentication scheme and parameters for validation or downstream use.","exampleAgentPrompt":"Parse this WWW-Authenticate header for me and tell me what auth scheme and parameters it contains: 'Bearer realm=\"https://auth.example.com\", error=\"invalid_token\", error_description=\"The token is expired\"'","exampleUseCases":[{"title":"Validate 401 challenge before retry","prompt":"I got a 401 response from an API with this WWW-Authenticate header: 'Digest realm=\"api.example.com\", nonce=\"abc123\", qop=\"auth\"' — can you parse it and tell me the scheme and parameters so I know how to authenticate?"},{"title":"Cache-safe auth header normalization","prompt":"Before I cache this server's authentication challenge, parse and normalize this WWW-Authenticate header so I have a clean structured version: 'Basic realm=\"My Service\", charset=\"UTF-8\"'"},{"title":"Detect malformed auth challenge","prompt":"Check whether this WWW-Authenticate header looks valid and well-formed before my agent acts on it: 'Bearer realm=example.com error=token_expired' — does it pass or does it have issues?"}],"resultDescription":"Returns versioned deterministic JSON containing: the normalized WWW-Authenticate header evidence, the extracted authentication scheme (e.g. Bearer, Basic, Digest), parsed bounded parameters (e.g. realm, error, nonce, qop), and an explicit pass or advisory status indicating whether the header is well-formed and safe to process.","failureModes":["Empty or missing header field returns an advisory/fail status","Malformed or unbounded header string may return parsing errors or advisory status","Header exceeding 8192 character limit is rejected","Completely unparseable input returns an advisory status rather than a hard error","Payment failure (x402) prevents the call from being processed"],"whenToPreferThis":"Use this endpoint when your agent needs to programmatically parse, validate, or normalize a WWW-Authenticate header from an HTTP 401 or 407 response before deciding how to authenticate, cache, redirect, or retry. It is especially useful when handling untrusted or caller-supplied headers where you need a deterministic, in-memory, no-retention parse without building custom parser logic. Prefer this over manual string parsing when you need a structured, versioned JSON output with an explicit pass/advisory status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:08:42.983Z","isFirstParty":false}