{"uid":"cap_a36unPfHixUuMIdjg6KPa","slug":"delx-commerce-http-header-map-normalize-08e4ba23","name":"Delx Commerce — HTTP Header Map Normalize","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/header-map-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"headers":{"type":"object","description":"Input field: headers."}}},"responseSchema":{"type":"json","example":{"ok":true,"count":1,"schema":"delx/util-header-map-normalize/v1","dropped":["connection"],"headers":{"content-type":"application/json"}}},"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_XNgtnEQm3PEIX6SJjBmDc","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":"Normalizes and sanitizes a map of HTTP headers, lowercasing keys, removing hop-by-hop headers, and returning a clean canonical header object.","exampleAgentPrompt":"Can you normalize this set of HTTP headers for me — lowercase the keys and drop any hop-by-hop headers like 'Connection'? The headers are: {'Content-Type': 'application/json', 'Connection': 'keep-alive', 'X-Custom-Header': 'value'}.","exampleUseCases":[{"title":"Sanitize headers before proxying request","prompt":"I'm about to relay a request to a third-party API. Can you clean up these headers first — remove anything like 'Connection' or 'Keep-Alive' that shouldn't be forwarded, and normalize the key casing? Here are the headers: {'Content-Type': 'application/json', 'Connection': 'keep-alive', 'Authorization': 'Bearer abc123'}."},{"title":"Normalize agent-collected headers for logging","prompt":"My agent scraped some response headers but the casing is all over the place. Can you normalize them so all keys are lowercase and any hop-by-hop headers are dropped? Headers: {'Content-Type': 'text/html', 'TRANSFER-ENCODING': 'chunked', 'X-Request-ID': '99f2'}."},{"title":"Prepare headers for downstream service call","prompt":"Before I pass these headers to the next step in my pipeline, can you run them through normalization to drop connection-level headers and lowercase everything? Headers: {'Accept': 'application/json', 'connection': 'upgrade', 'host': 'api.example.com'}."}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'count' (number of headers retained), 'schema' (versioned schema identifier 'delx/util-header-map-normalize/v1'), 'dropped' (array of header keys that were removed), and 'headers' (the cleaned, normalized header map with lowercased keys and hop-by-hop headers stripped).","failureModes":["Invalid or non-object 'headers' input may cause a 400 error","Empty headers object returns ok:true with count:0 and empty headers map","Network or payment failure returns a 402 or 5xx response","Malformed JSON body returns a parse error"],"whenToPreferThis":"Choose this endpoint when an agent needs to canonicalize HTTP headers before forwarding, logging, or storing them — especially to remove proxy-specific hop-by-hop headers (Connection, Transfer-Encoding, etc.) and standardize key casing. It is ideal for lightweight, pay-per-call header sanitization without needing to run custom normalization logic. Use it instead of writing your own header-cleaning function when operating in an agent pipeline that already supports x402 micropayments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:51.973Z","isFirstParty":false,"canonicalSlug":"delx-commerce-http-header-map-normalize-08e4ba23"}