{"uid":"cap_UzYKb3PuoaXYgvDT8HQT6","slug":"writerslogic-result-cache-2ac7e0ee","name":"WritersLogic Result Cache","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/result-cache?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["get","put"],"type":"string"},"value":{"description":"put: the JSON result, at most 16384 bytes serialized."},"request":{"description":"Any JSON identifying the computation; it is canonicalized (RFC 8785) and hashed."},"tenantId":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"Required for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant."},"namespace":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$","description":"Default: default."},"ttlSeconds":{"type":"integer","maximum":3600,"minimum":1,"description":"put: default 300."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jNkMyKR6vlc_WEUAJGCvN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Caches and retrieves JSON computation results keyed by SHA-256 of the canonicalized request, scoped per wallet or tenantId, with a TTL up to one hour.","exampleAgentPrompt":"Before running that expensive analysis again, check the result cache to see if we already have an answer for this exact request under tenant 'acme-fleet', and if not, run it and store the result for 10 minutes.","exampleUseCases":[{"title":"Deduplicating agent fleet computations","prompt":"I have 20 agents that might all ask the same question at once — can you check the result cache for this request JSON first, and if it's a miss, run the computation and store the answer under tenant 'prod-fleet' for 15 minutes?"},{"title":"Storing expensive LLM output for reuse","prompt":"This summarization took 3 seconds and cost a lot — store the result in the cache under namespace 'summaries' with a 1-hour TTL so any agent in my fleet that sends the same document gets the answer instantly."},{"title":"Retrieving a previously cached answer","prompt":"Before calling the pricing API again, do a cache get for this request payload under tenant 'billing-agent' and tell me if we have a hit and how old the cached answer is."}],"resultDescription":"For a 'get' operation: a JSON object indicating 'hit' (with the cached value and age in seconds) or 'miss' (status unknown). For a 'put' operation: confirmation that the value was stored under the SHA-256 hash of the canonicalized request, scoped to the tenant.","failureModes":["Value exceeds 16384 bytes serialized — rejected with an error","Invalid tenantId format (must match ^[A-Za-z0-9_.-]{1,64}$) — validation error","Invalid namespace format — validation error","ttlSeconds out of range (must be 1–3600) — validation error","Missing tenantId for API-key callers — authentication/scoping error","Cache miss on get — returns miss status, no value","TTL expired — subsequent get returns miss after expiry"],"whenToPreferThis":"Use this endpoint when you need a fast, tenant-scoped, request-keyed cache for JSON computation results shared across an agent fleet. Prefer it over building your own caching layer when you want SHA-256-based deduplication, JCS canonicalization, and strict tenant isolation (no cross-customer leakage) out of the box. Ideal for reducing redundant calls to expensive AI, pricing, or analytics APIs within a single fleet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:32:33.854Z","isFirstParty":false,"canonicalSlug":"writerslogic-result-cache-2ac7e0ee"}