{"uid":"cap_iC13_WpoXgjuKTAJEzCUQ","slug":"memwry-ai-working-memory-12h-ephemeral-write-89a400da","name":"Memwry AI Working Memory — 12h Ephemeral Write","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/12h","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":"12h","amount":"20000","paidAt":"2026-08-23T09:42:18Z","txHash":"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890","agentId":"agent-123","network":"eip155:8453","service":"memwry","currency":"USDC","expiresAt":"2026-08-23T21:42:18Z","receiptId":"e4c18495-e224-5920-9782-fd6cc80227b5","ttlSeconds":43200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_klrHg1BlmlPelya2fCRDQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a keyed value in ephemeral agent working memory for 12 hours, paid per-write with USDC via x402 on Base; reads are always free.","exampleAgentPrompt":"Save the current goal state for agent 'agent-123' under the key 'goal' in Memwry working memory for 12 hours — the value is: {\"currentTask\": \"summarize documents\", \"step\": 3}.","exampleUseCases":[{"title":"Multi-step agent task checkpoint","prompt":"Store the current task progress for agent 'crawler-agent-7' under the key 'task-state' in Memwry for 12 hours — the value is: {\"step\": 5, \"remainingUrls\": [\"https://example.com/page3\"], \"status\": \"in-progress\"}."},{"title":"Agent scratchpad for research pipeline","prompt":"Write a scratchpad entry for agent 'research-bot-42' with the key 'findings' to Memwry — store this for 12 hours: {\"sources\": [\"arxiv.org/abs/1234\"], \"summary\": \"Transformer attention mechanisms improved by 12%\"}."},{"title":"Ephemeral shared context between agent steps","prompt":"Save the shared context for agent 'orchestrator-1' under key 'subtask-results' in Memwry with a 12-hour TTL — the value is: {\"step1\": \"done\", \"step2\": \"pending\", \"handoff\": \"agent-worker-2\"}."}],"resultDescription":"Returns a JSON receipt confirming the write, including: receiptId (UUID), txHash (Base chain transaction hash), agentId, key, tier ('12h'), ttlSeconds (43200), paidAt timestamp, expiresAt timestamp, amount in USDC microcents (200000 = $0.20), network ('eip155:8453'), currency ('USDC'), and service identifier ('memwry').","failureModes":["Payment failure — insufficient USDC balance or x402 payment not accepted; returns payment error","Body too large — payload exceeds 512KB limit; returns 413 or equivalent error","Invalid agentId or key path parameters — malformed URL path; returns 400","Network/blockchain congestion — settlement delay or tx failure on Base; may return 503 or timeout","Expired or invalid payment token — x402 auth header missing or malformed; returns 402"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs lightweight, ephemeral key-value storage for 12 hours with no account setup, no persistent infrastructure, and sub-cent cost settled instantly on-chain via USDC. Ideal for agent workflows requiring transient scratchpad state, checkpoint data, or inter-step context passing without a dedicated database. Prefer over full databases or persistent KV stores when data lifetime of exactly 12 hours is acceptable and pay-per-write pricing is desirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T06:41:13.110Z","isFirstParty":false}