{"uid":"cap_eUP4QwYSyFYEkTDD31bkm","slug":"delx-commerce-agent-result-freshness-check-06d41aad","name":"Delx Commerce — Agent Result Freshness 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/agent-result-freshness-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."},"observed_at_epoch":{"type":"integer","description":"Observed At Epoch supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."},"maximum_age_seconds":{"type":"integer","description":"Maximum Age Seconds supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"fresh":true,"age_seconds":60},"schema":"delx/util-agent-result-freshness-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"988059b2da4170c5bfc7e047394f4e4a26cb307ee840337c2c752ffa3e5af0e3","external_calls":0},"operation":"delivery_contract:agent_result_freshness_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_116wCgCKuqMkrG_xPZynv","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":"Checks whether an agent result is still fresh by comparing its observed timestamp against the current time and a maximum allowable age, returning a pass/fail verdict with age in seconds.","exampleAgentPrompt":"Check whether a result observed at epoch 1717000000 is still fresh as of now (epoch 1717000060), given a maximum allowed age of 300 seconds.","exampleUseCases":[{"title":"Cache freshness gate before agent action","prompt":"I have a cached price result that was fetched at epoch 1716990000. It's now epoch 1717000000 and I only trust results up to 600 seconds old — can you tell me if it's still fresh enough to use?"},{"title":"Multi-step pipeline staleness check","prompt":"Before I pass this analysis result downstream, verify it's still within its freshness window: it was observed at epoch 1716985000, the current time is epoch 1717000000, and the pipeline requires results no older than 3600 seconds."},{"title":"Real-time agent health monitoring","prompt":"My monitoring agent wants to confirm that a sensor reading captured at epoch 1717003500 is still fresh at epoch 1717003560 with a maximum acceptable age of 120 seconds — can you run a freshness check?"}],"resultDescription":"Returns a JSON object with a `fresh` boolean and `age_seconds` integer indicating how old the result is, a `status` field ('pass' or 'fail'), an `operation` identifier, and an `evidence` block containing an input SHA-256 hash confirming no data was retained and no external calls were made — providing verifiable, auditable freshness validation.","failureModes":["Missing required fields (now_epoch, observed_at_epoch, or maximum_age_seconds) result in a validation error","now_epoch earlier than observed_at_epoch may produce negative age or unexpected behavior","Non-integer epoch values will fail schema validation","Payment failure or insufficient USDC balance blocks execution via x402 protocol"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a lightweight, verifiable, pay-per-use check that a previously obtained result has not exceeded a defined staleness threshold — especially in agentic pipelines where trust, auditability (SHA-256 evidence), and zero data retention matter. Prefer it over rolling your own time arithmetic when you need an on-chain payment receipt proving the check was performed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:42.742Z","isFirstParty":false,"canonicalSlug":"delx-commerce-agent-result-freshness-check-06d41aad"}