{"uid":"cap_xr83ydylc02jx6HrJ3aVe","slug":"delx-commerce-cookie-expiry-check-a0cb9d77","name":"Delx Commerce — Cookie Expiry Check","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/cookie-expiry-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_age_seconds":{"type":"integer","description":"Max Age Seconds supplied to Cookie Expiry Check; used only for this bounded calculation and processed in memory without retention."},"maximum_seconds":{"type":"integer","description":"Maximum Seconds supplied to Cookie Expiry Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"within_policy":true,"lifetime_seconds":3600},"schema":"delx/util-cookie-expiry-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"a491d02ddf4db75f7e8ad0e74d1e5993f6dbc44bed654b8e5abc0848ecc6bad3","external_calls":0},"operation":"web_reliability:cookie_expiry_check"}},"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_BTEm0Sf6jFES0ntvjXBuA","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 a cookie's max-age or lifetime falls within an acceptable policy window, returning a pass/fail result with verifiable evidence.","exampleAgentPrompt":"Check whether a cookie with a max_age of 3600 seconds is within the allowed maximum of 7200 seconds — I need a pass/fail result with verifiable evidence that the input wasn't retained.","exampleUseCases":[{"title":"Cookie policy compliance audit","prompt":"I have a cookie set with max_age_seconds of 86400 — check if that's within our maximum allowed lifetime of 3600 seconds and tell me if it passes policy."},{"title":"Session token lifetime gate","prompt":"Before we deploy this session cookie, verify that its max_age of 1800 seconds doesn't exceed our 3600-second cap, and give me a signed result I can attach to the deployment log."},{"title":"Browser cookie hardening check","prompt":"We're hardening our web app and need to confirm that all new cookies with a max_age of 600 seconds comply with our 900-second maximum — can you run the expiry check and return the lifetime in seconds?"}],"resultDescription":"Returns a JSON object with a 'result' containing 'within_policy' (boolean) and 'lifetime_seconds' (integer), a 'status' field ('pass' or 'fail'), an 'operation' label, and an 'evidence' block with a SHA-256 hash of the input, a 'retained' flag (always false), and an external_calls count (always 0) confirming no data was persisted or leaked.","failureModes":["Missing or non-integer max_age_seconds or maximum_seconds may return a 400 validation error","If max_age_seconds exceeds maximum_seconds, status is 'fail' and within_policy is false — not an HTTP error","Payment failure (x402) will block the call before computation occurs","Malformed JSON body returns an error before any calculation"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, privacy-preserving check that a cookie's max-age value falls within a defined policy limit — especially in agent workflows where auditability (SHA-256 input hash, no-retention guarantee, zero external calls) matters. Prefer it over custom logic when you need a pay-per-call, no-signup micro-verification with cryptographic evidence suitable for compliance logs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:05.708Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cookie-expiry-check-a0cb9d77"}