{"uid":"cap_i3qDZB6dQuxSt2ytCzV2v","slug":"memwry-ai-working-memory-6-hour-write-35e3178e","name":"Memwry AI Working Memory — 6-Hour 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/6h/%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":"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":"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.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_qmwnT2Bvk7ZwLPmmukpL-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Writes a key-value state entry for an agent with a 6-hour TTL, settling payment instantly on Base via x402 at $0.01 USDC per write.","exampleAgentPrompt":"Store the key 'goal' with my current task state under agent ID 'agent-123' in Memwry's 6-hour ephemeral memory tier — it should expire automatically after 6 hours.","exampleUseCases":[{"title":"Agent scratchpad for multi-step task","prompt":"Save the key 'scratchpad' with my current plan under agent ID 'planner-agent-7' in Memwry's 6-hour working memory so I can retrieve it later in this session."},{"title":"Caching intermediate reasoning state","prompt":"Write the key 'intermediate-result' for agent 'researcher-42' into Memwry's ephemeral memory — it only needs to live for 6 hours while the research job is running."},{"title":"Storing agent goal across tool calls","prompt":"Persist the key 'current-goal' for agent ID 'executor-001' in Memwry's 6-hour memory tier so the agent can reference its objective across multiple tool calls without losing state."}],"resultDescription":"Returns a JSON receipt confirming the write, including: receiptId (UUID), txHash (Base L2 transaction hash), agentId, key, tier ('6h'), ttlSeconds (21600), paidAt and expiresAt timestamps, USDC amount charged (in micro-units), network ('eip155:8453'), currency ('USDC'), and service name ('memwry').","failureModes":["Payment insufficient or missing — x402 payment header not attached or USDC balance too low","Invalid agentId or key format — may return 400 Bad Request","Write conflict if key already exists and overwrite not supported — may return 409","Network congestion on Base causing settlement delay — rare but possible","TTL already elapsed before read — state expires exactly 6 hours after write","Malformed request body — returns 400 with validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs ultra-cheap, ephemeral key-value state that expires automatically in 6 hours with no account setup, billed per write via x402 on Base. Ideal for autonomous agent workflows where state only needs to persist for a single session or task window. Prefer over traditional databases when you want zero infrastructure overhead and instant crypto settlement at sub-cent cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:34:22.011Z","isFirstParty":false,"canonicalSlug":"memwry-ai-working-memory-6-hour-write-35e3178e"}