{"uid":"cap_s8tPdOXX8UVoJk2DSq4DA","slug":"memwry-ai-working-memory-write-6h-ttl-ab97dea1","name":"Memwry AI Working Memory – Write (6h TTL)","description":"Pay-per-write working memory for autonomous agents. Sub-cent ephemeral state, zero account setup, settled instantly on Base via x402. Writes cost USDC. Reads are always free.","url":"https://memwry.servitor.workers.dev/mem/%7BagentId%7D/%7Bkey%7D/6h","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"string","description":"Raw text or JSON string to store in working memory (up to 512KB)"},"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"key":"goal","tier":"6h","amount":"10000","paidAt":"2026-08-23T09:42:18Z","txHash":"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd","agentId":"agent-123","network":"eip155:8453","service":"memwry","currency":"USDC","expiresAt":"2026-08-23T15:42:18Z","receiptId":"d3b07384-d113-4819-8671-ec5bb79116a4","ttlSeconds":21600}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MJOWfhSDalM-TeY6_PMeK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a key-value memory entry for a specific agent ID with a 6-hour TTL, settled instantly via x402 micropayment on Base in USDC.","exampleAgentPrompt":"Save the string '{\"goal\":\"research competitor pricing\",\"status\":\"in-progress\"}' into my working memory under the key 'goal' for agent ID 'agent-123', expiring in 6 hours — pay the write fee automatically.","exampleUseCases":[{"title":"Multi-step agent task handoff","prompt":"Store the current task plan as JSON under key 'task-plan' for agent ID 'planner-7' so the next step can pick it up — it only needs to live for 6 hours, go ahead and pay the write fee."},{"title":"Ephemeral scratchpad for research agent","prompt":"Write my running research notes — 'Found 3 relevant papers so far, still checking citations' — into working memory under key 'research-notes' for agent 'researcher-42', with a 6-hour expiry."},{"title":"Cross-agent state sharing","prompt":"Persist the output JSON from the data-collection step under key 'collected-data' for agent 'pipeline-agent-9' so the analysis agent can read it within the next 6 hours; pay with USDC on Base."}],"resultDescription":"Returns a JSON receipt confirming the write: includes receiptId, txHash (Base blockchain), agentId, key, tier ('6h'), ttlSeconds (21600), paidAt, expiresAt, amount in USDC microdollars, network (eip155:8453), and service identifier.","failureModes":["Payment failure: insufficient USDC balance or x402 payment rejected — write not stored","Payload too large: body exceeds 512KB limit — rejected with error","Invalid agentId or key path parameters — 400 error","Network/blockchain congestion delaying settlement — write may time out","Expired or duplicate payment nonce — transaction rejected"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs ephemeral, sub-cent key-value storage without any account setup, and is already operating in an x402/Base USDC payment environment. Ideal for multi-step pipelines where intermediate state must survive for a few hours but permanent storage is unnecessary. Prefer over traditional KV stores when zero-setup, pay-per-use micropayment billing is required and the agent can self-fund writes on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T06:33:01.921Z","isFirstParty":false}