{"uid":"cap_YBya2ALPyoNBU-mGkY9iK","slug":"delx-commerce-rate-limit-window-check-c6dc327e","name":"Delx Commerce — Rate Limit Window 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/rate-limit-window-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"remaining":{"type":"integer","description":"Remaining supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"requested":{"type":"integer","description":"Requested supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"reset_epoch":{"type":"integer","description":"Reset Epoch supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"deficit":0,"within_quota":true,"reset_in_seconds":60},"schema":"delx/util-rate-limit-window-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"e12bef43e7d52fe13e28d9a9200483561a533bc0eed1e48f817303d9e23b66ee","external_calls":0},"operation":"web_reliability:rate_limit_window_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_m-59y9wZnJaiiWHBJKJL8","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 a requested number of API calls falls within the current rate limit quota window, returning deficit, quota status, and seconds until reset.","exampleAgentPrompt":"I have 45 calls remaining in my current rate limit window that resets at epoch 1720000060, and it's currently epoch 1720000000 — can you check if I can safely make 30 more requests right now?","exampleUseCases":[{"title":"Pre-burst quota safety check","prompt":"Before I fire off 50 webhook retries, check if my rate limit window allows it — I have 60 calls remaining, I'm requesting 50, it's currently epoch 1720001000, and the window resets at epoch 1720001800."},{"title":"Deficit calculation for throttling logic","prompt":"I only have 10 calls left in my quota window but I need to make 25 — tell me how far over my limit I am and how long until the window resets. Current time is epoch 1719999500, reset at epoch 1720000000."},{"title":"Agent pre-flight rate limit gate","prompt":"My agent is about to send 100 requests, I have 120 remaining in my quota, the current time is epoch 1720003600, and reset happens at epoch 1720007200 — confirm it's within quota so I can proceed."}],"resultDescription":"Returns a JSON object with: 'within_quota' (boolean indicating if the request fits within the limit), 'deficit' (number of calls over quota, 0 if within), 'reset_in_seconds' (time until quota window resets), plus an evidence block with input SHA-256 hash, retained=false flag, and external_calls=0 confirming the computation is purely in-memory with no data retention.","failureModes":["Missing required fields (now_epoch, remaining, requested, reset_epoch) result in a validation error","Non-integer values for epoch or count fields cause schema rejection","reset_epoch earlier than now_epoch may produce undefined or negative reset_in_seconds","Payment failure via x402 protocol blocks the request before computation","Malformed JSON body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a cryptographically evidenced, pay-per-result rate limit window check with no signup or persistent state — particularly useful for AI agents that need verifiable proof of computation (SHA-256 input hash, zero external calls, no data retained) as part of an auditable workflow. Prefer this over building your own arithmetic when you need tamper-evident, on-chain-payment-gated quota validation on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:34:03.480Z","isFirstParty":false,"canonicalSlug":"delx-commerce-rate-limit-window-check-c6dc327e"}