{"uid":"cap_H-XFyrRnk5vz7N9IHsUvl","slug":"delx-commerce-www-authenticate-header-parser-746db294","name":"Delx Commerce — WWW-Authenticate Header Parser","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/www-authenticate-parse?utm_source=zero.xyz","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_u_1KsxDS9NsFSXhVpOffo","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 a WWW-Authenticate HTTP header string into structured scheme and parameter components, returning verifiable results with no data retention.","exampleAgentPrompt":"Can you parse this WWW-Authenticate header for me and tell me the scheme, realm, and any error parameters: 'Bearer realm=\"api\", error=\"invalid_token\", error_description=\"The token has expired\"'?","exampleUseCases":[{"title":"Diagnosing a 401 auth challenge","prompt":"I just got a 401 response from an API with this header: 'Bearer realm=\"https://auth.example.com\", error=\"insufficient_scope\"' — can you parse that out and tell me the realm and error code?"},{"title":"Handling x402 payment challenges","prompt":"My agent received a 402 response with a WWW-Authenticate header of 'Bearer realm=\"commerce.delx.ai\", error=\"payment_required\"' — parse it so I know where to send the payment and what error is being returned."},{"title":"Validating auth header format in CI","prompt":"Check this WWW-Authenticate header value and confirm it's correctly structured with a valid scheme and parameters: 'Basic realm=\"staging-api\", charset=\"UTF-8\"'."}],"resultDescription":"Returns a JSON object containing the parsed WWW-Authenticate header value broken into its scheme/value string and a parameters map of key-value pairs extracted from the header. Also includes an evidence block confirming no data was retained (retained: false), the SHA-256 hash of the input for auditability, and a status field ('pass') indicating successful parsing. The operation field identifies this as a web_reliability utility.","failureModes":["Malformed or empty header string may result in an empty parameters map or parsing error","Header exceeding 8192 characters will be rejected","Non-standard or custom authentication schemes may not be fully decomposed","Missing or null header input returns a validation error"],"whenToPreferThis":"Use this endpoint when an AI agent or automated workflow needs to programmatically interpret a WWW-Authenticate header — especially in x402 payment flows or 401/402 challenge handling — and requires verifiable, auditable parsing with a known fixed cost ($0.001 USDC) and no data retention. Prefer this over rolling your own parser when you need cryptographic evidence of the input processed (SHA-256 hash) and a guarantee of no external calls or data storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:46.047Z","isFirstParty":false,"canonicalSlug":"delx-commerce-www-authenticate-header-parser-746db294"}