{"uid":"cap_N057ShJdv8oLX04xZbbod","slug":"minddream-store-with-ttl-4feea015","name":"MindDream Store with TTL","description":"Persistent memory for autonomous AI agents: save facts, recall them by meaning, forget them. Pay per call in USDC (x402 on Base and Solana). No account, no API key: the wallet that pays owns the memory.\n\nUse it when an agent must remember things across sessions: preferences, decisions, facts learned, task context. Typical loop: store what matters, recall it at the start of the next session with a plain-language query.\n\nHow to pay: call an endpoint without payment to get the 402 with the accepted networks, asset, amount and payTo; sign it and repeat the call with the PAYMENT-SIGNATURE header. The wallet that pays is the memory namespace. MCP (Streamable HTTP) is also available on this same host, at the path \"mcp\", with the same tools and prices.","url":"https://api.minddreamai.xyz/store_ttl?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"content":{"type":"string","maxLength":4000,"minLength":1,"description":"The fact, preference or decision to remember, in plain natural language."},"ttl_seconds":{"type":"integer","maximum":31536000,"minimum":60,"description":"Seconds until the memory expires (60 to 31536000)."}}},"responseSchema":{"type":"json","example":{"id":"123e4567-e89b-42d3-a456-426614174000","created_at":"2026-01-01T12:00:00.000Z","expires_at":"2026-01-02T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","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.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1JbIObULfx-ntmJBXfzow","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Stores a plain-language fact, preference, or decision into an AI agent's persistent memory namespace with a configurable expiry time.","exampleAgentPrompt":"Remember that my user prefers dark mode and metric units — store it in MindDream memory for 90 days (7776000 seconds).","exampleUseCases":[{"title":"Persist user preferences across sessions","prompt":"Save in my agent's memory that the user prefers concise bullet-point summaries over long paragraphs — keep it for 30 days (2592000 seconds)."},{"title":"Store decision context for a long-running task","prompt":"Remember that we decided to target the European market first and defer Asia launch to Q3 — store it for 6 months (15552000 seconds) so future sessions still have that context."},{"title":"Cache a learned fact with short-term expiry","prompt":"Store the fact that today's standup was cancelled due to a holiday — it only needs to last 24 hours (86400 seconds), then it can expire."}],"resultDescription":"Returns a JSON object with a unique memory ID (UUID), the creation timestamp, and the expiry timestamp — confirming the fact was stored and indicating when it will be automatically deleted.","failureModes":["Payment not provided or invalid: returns HTTP 402 with accepted networks, asset, amount, and payTo for the x402 protocol","content field missing or empty: validation error","ttl_seconds outside range 60–31536000: validation error","Malformed PAYMENT-SIGNATURE header: payment rejected","Network unavailable or service error: 5xx response"],"whenToPreferThis":"Use this endpoint when an AI agent needs to durably persist a plain-language fact, preference, or decision across sessions with a controlled expiry, without needing an account or API key — the paying wallet becomes the memory namespace. Prefer it over session-scoped context windows when memory must survive restarts, over traditional databases when you want zero-setup per-wallet namespacing, and over indefinite storage when the information has a natural expiry (e.g. daily context, short-lived preferences).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-04T18:35:23.470Z","isFirstParty":false,"canonicalSlug":"minddream-store-with-ttl-4feea015"}