{"uid":"cap_JnS8AE9fgMRI8dVVUZgq1","slug":"http-header-diff-bd6d32a7","name":"HTTP Header Diff","description":"Compare two caller-supplied HTTP header maps case-insensitively while redacting Authorization, Cookie, Set-Cookie, and Proxy-Authorization values. Use after header or TLS inspection to identify configuration drift and security-sensitive changes. Returns bounded deterministic JSON for 0.001 USDC via x402 on Base; no URL fetch or retention.","url":"https://api.delx.ai/api/v1/x402/http-header-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","maxProperties":200},"before":{"type":"object","maxProperties":200}}},"responseSchema":{"type":"json","example":{"added":[],"schema":"delx/util-http-header-diff/v1","changed":[{"name":"strict-transport-security","after":"max-age=31536000","before":"max-age=60"}],"removed":[],"unchanged_count":1,"credential_values_redacted":true,"security_sensitive_changes":["strict-transport-security"]}},"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_Fcj1bCefx3FJTRWb6iCpO","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":"Compares two HTTP header maps case-insensitively, redacting sensitive values, and returns a structured diff of added, removed, and changed headers.","exampleAgentPrompt":"Compare these two HTTP header sets for me — the before set has 'Content-Type: application/json' and 'Authorization: Bearer abc123', and the after set adds 'X-Frame-Options: DENY' and drops 'Authorization' — tell me what changed, and make sure sensitive values like Authorization are redacted in the output.","exampleUseCases":[{"title":"Detect deployment-induced header drift","prompt":"After our latest deployment, I want to know what HTTP headers changed — here's the before snapshot with 'Content-Type: application/json', 'Cache-Control: no-store', and 'X-Request-Id: old-id', and the after snapshot with 'Content-Type: application/json', 'Cache-Control: public', and 'X-New-Header: added'. What's different?"},{"title":"Audit security header changes after TLS reconfiguration","prompt":"We just updated our TLS config and I need to audit the header changes. Before we had 'Strict-Transport-Security: max-age=3600' and 'Set-Cookie: session=secret; Secure', after we have 'Strict-Transport-Security: max-age=31536000' and 'Set-Cookie: session=newsecret; Secure; HttpOnly'. Show me the diff with sensitive cookie values redacted."},{"title":"Catch unexpected proxy header modifications","prompt":"I'm seeing weird behavior in our proxy layer and want to check if headers are being modified. The original request headers include 'Proxy-Authorization: Basic xyz', 'Accept: application/json', and 'X-Forwarded-For: 10.0.0.1', and after the proxy they're 'Accept: text/html', 'X-Forwarded-For: 10.0.0.1', and 'Via: 1.1 proxy'. What was added, removed, or changed, with auth values redacted?"}],"resultDescription":"A bounded deterministic JSON object listing headers that were added, removed, or modified between the before and after maps, with values for Authorization, Cookie, Set-Cookie, and Proxy-Authorization replaced by redacted placeholders. The result is case-insensitive and contains no fetched or retained data.","failureModes":["Input exceeds 200 properties per header map — request rejected","Malformed JSON body — returns parse error","Missing both before and after fields — returns validation error","Payment not provided or insufficient — x402 payment required response","Header values that are not strings may cause type errors"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, security-aware diff of two HTTP header snapshots without fetching any URLs or retaining data. It is ideal for detecting configuration drift post-deployment, auditing header changes after TLS or proxy reconfiguration, or any workflow where sensitive header values must be automatically redacted before logging or reporting. Prefer it over general-purpose diff tools when HTTP-specific case-insensitive comparison and built-in redaction of auth and cookie headers are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:11.408Z","isFirstParty":false}