{"uid":"cap_E-jYMeG4l2smhdoQCsTtg","slug":"memwry-ai-working-memory-12h-write-c448fd22","name":"Memwry AI Working Memory — 12h 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/12h/%7BagentId%7D/%7Bkey%7D?utm_source=zero.xyz","method":"POST","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":["POST"],"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":"registry","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_EHcZpETCYrHF5EE5G74S-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a keyed ephemeral value for an agent for 12 hours, settled instantly via USDC micropayment on Base (x402)","exampleAgentPrompt":"Store the value 'research complete, 3 sources found' under the key 'goal' for agent 'agent-123' in Memwry's 12-hour working memory tier so I can retrieve it later this session.","exampleUseCases":[{"title":"Multi-step agent task handoff","prompt":"Save the current task progress — 'step 2 of 5 complete, awaiting user confirmation' — under the key 'task_progress' for agent 'pipeline-agent-77' in Memwry's 12-hour working memory so the next step can pick it up."},{"title":"Ephemeral goal state for autonomous agent","prompt":"Write my agent's current goal — 'find cheapest flight to NYC before noon' — under the key 'active_goal' for agent-id 'flight-scout-01' in Memwry, using the 12-hour tier so it expires automatically after the session."},{"title":"Cheap per-run scratch pad for agent loop","prompt":"Store the intermediate search result count '42 matches' under the key 'search_count' for agent 'scraper-agent-9' in Memwry's 12h working memory — I don't want to pay for a full database just for this run."}],"resultDescription":"Returns a JSON receipt confirming the write, including: receiptId, txHash (Base blockchain transaction), agentId, key, TTL tier ('12h'), ttlSeconds (43200), paidAt timestamp, expiresAt timestamp, amount paid in USDC units, network (eip155:8453), currency (USDC), and service name ('memwry').","failureModes":["Payment insufficient or rejected by x402 facilitator — write not committed","Invalid or missing agentId/key path parameters — 400 error","USDC wallet has insufficient funds — payment fails, no write occurs","Network congestion on Base causing settlement delay","Key collision if same agentId+key written twice — behavior may overwrite or reject depending on service logic","Cloudflare Worker timeout — ephemeral infrastructure failure"],"whenToPreferThis":"Choose this endpoint when an AI agent needs cheap, throwaway, short-lived key-value state (12-hour TTL) without any account setup, user login, or long-term commitment. Ideal for autonomous agent pipelines on Base where you want sub-cent-scale costs, instant settlement via x402 USDC micropayment, and automatic expiry — as opposed to a traditional database (no signup required), Redis (no infra to manage), or longer-lived memory tiers (use a 24h or 7d tier if the data needs to outlast 12 hours).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:30:59.447Z","isFirstParty":false,"canonicalSlug":"memwry-ai-working-memory-12h-write-c448fd22"}