{"uid":"cap_GXjFm_QnXao6ywunXKrR0","slug":"age-header-validate-a099c117","name":"Age Header Validate","description":"Age Header Validate: Age Header Validate checks whether an HTTP Age value fits a declared freshness lifetime from bounded caller-supplied values without an external provider. Call Age Header Validate 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 Age Header Validate as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, me…","url":"https://api.delx.ai/api/v1/x402/age-header-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"age":{"type":"string","maxLength":8192,"description":"Age supplied to Age Header Validate; used only for this bounded calculation and processed in memory without retention."},"max_age_seconds":{"type":"integer","description":"Max Age Seconds supplied to Age Header Validate; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"age_seconds":120,"within_freshness":true},"schema":"delx/util-age-header-validate/v1","status":"pass","evidence":{"retained":false,"input_sha256":"f51799fd712f3514d51db5985cf250b2e699f3081571f017224fd7838e380cc7","external_calls":0},"operation":"web_reliability:age_header_validate"}},"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_YJ6eO73R8dJrri2kBIJmm","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":"Validates whether an HTTP Age header value fits within a declared freshness lifetime (max-age), returning a deterministic pass/fail finding as versioned JSON.","exampleAgentPrompt":"Check if an HTTP response with an Age header value of '3600' is still fresh given a max-age of 7200 seconds.","exampleUseCases":[{"title":"Cache freshness check before serving","prompt":"I have a cached HTTP response with an Age header of '1800' and the original Cache-Control max-age is 3600 seconds — can you tell me if it's still fresh or stale?"},{"title":"Reject stale response before redirect","prompt":"Before I redirect the user, I need to validate this HTTP response — it has an Age of '86500' and a max-age of 86400 seconds. Is it past its freshness window?"},{"title":"Agent pipeline cache validation","prompt":"My agent just received a web response with Age set to '250'. The allowed freshness lifetime is 300 seconds. Run a freshness check and tell me if it passes or if I should retry."}],"resultDescription":"Returns versioned deterministic JSON containing: normalized web evidence (the supplied Age and max-age values), the computed finding (age delta vs freshness limit), and an explicit pass or advisory status indicating whether the HTTP Age value fits within the declared freshness lifetime.","failureModes":["Missing or invalid 'age' string (non-numeric or empty) may produce an advisory/error status","Missing 'max_age_seconds' integer causes inability to compute freshness comparison","Malformed Age header strings (e.g. negative values, non-integer strings) may result in an advisory rather than pass status","Extremely large integer values for max_age_seconds may be clamped or flagged"],"whenToPreferThis":"Choose this endpoint when you need a stateless, deterministic, no-external-dependency check of HTTP Age header freshness against a known max-age value — especially in agentic pipelines that must accept, cache, redirect, or retry web responses and need an auditable pass/fail record. Prefer it over manual arithmetic when you need versioned JSON evidence of the freshness decision.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:06.572Z","isFirstParty":false}