{"uid":"cap_B9VEQSo9yAfWE5lveycY6","slug":"delx-commerce-expires-header-validate-143d74ff","name":"Delx Commerce — Expires Header Validate","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/expires-header-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date_epoch":{"type":"integer","description":"Date Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."},"expires_epoch":{"type":"integer","description":"Expires Epoch supplied to Expires Header Validate; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"non_negative":true,"lifetime_seconds":300},"schema":"delx/util-expires-header-validate/v1","status":"pass","evidence":{"retained":false,"input_sha256":"ffaeb927a9888a663105db7e7acc72e617fcdb3b01fc28c069de689945d7f1ce","external_calls":0},"operation":"web_reliability:expires_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_UDaMqLmOLkmliD95QBTs5","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 an HTTP Expires header by computing whether a given expiry epoch is non-negative and calculating the lifetime in seconds relative to a reference date epoch.","exampleAgentPrompt":"Check if an HTTP Expires header is valid: the current date epoch is 1700000000 and the expires epoch is 1700000300 — tell me whether it's non-negative and how many seconds the lifetime is.","exampleUseCases":[{"title":"Cache header audit in agent pipeline","prompt":"I have an HTTP response where the date epoch is 1699999800 and the expires epoch is 1700000100 — can you validate the Expires header and tell me the lifetime in seconds and whether it's non-negative?"},{"title":"Web reliability check before resource fetch","prompt":"Before my agent fetches this resource, I need to verify the Expires header is valid: date epoch 1700100000, expires epoch 1700100600. Is the expiry non-negative and what's the lifetime?"},{"title":"Debugging stale cache headers","prompt":"I'm seeing unexpected caching behavior — the date epoch is 1700050000 and the expires epoch is 1700049000, which seems wrong. Can you validate the Expires header and tell me if it's non-negative and what the lifetime comes out to?"}],"resultDescription":"Returns a JSON object with: a 'result' object containing 'non_negative' (boolean) and 'lifetime_seconds' (integer); a 'status' field ('pass'/'fail'); an 'evidence' object with 'retained' (false), 'input_sha256' hash of inputs, and 'external_calls' count (0); plus schema and operation identifiers. Processing is in-memory with no data retention.","failureModes":["Missing or invalid date_epoch or expires_epoch integers — likely returns a validation error or non-pass status","Malformed request body — likely returns a 400-level HTTP error","Payment failure via x402 protocol — request not processed if USDC payment is not completed","Negative lifetime (expires before date) — returns non_negative: false with a negative or zero lifetime_seconds"],"whenToPreferThis":"Use this endpoint when an AI agent needs a verifiable, auditable validation of an HTTP Expires header with cryptographic evidence of the inputs processed (SHA-256 hash) and a guarantee of no data retention or external calls. Prefer it over manual time arithmetic when you need a pay-per-result, trustless computation result in an agent pipeline handling web caching or reliability checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:40.693Z","isFirstParty":false,"canonicalSlug":"delx-commerce-expires-header-validate-143d74ff"}