# MindDream Store with TTL

> MindDream Store with TTL is a paid API for AI agents from api.minddreamai.xyz, paid per call via x402, $0.007/call, status unknown (last checked 2026-12-04).

Stores a plain-language fact, preference, or decision into an AI agent's persistent memory namespace with a configurable expiry time.

## Facts

- Endpoint: POST https://api.minddreamai.xyz/store_ttl?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minddream-store-with-ttl-4feea015
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N057ShJdv8oLX04xZbbod

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability minddream-store-with-ttl-4feea015 -d '<json body>'
```

Example prompt: Remember that my user prefers dark mode and metric units — store it in MindDream memory for 90 days (7776000 seconds).

## When to prefer this

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).

## Known failure modes

- 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

## How this service works

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.

Use 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.

How 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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minddream-store-with-ttl-4feea015/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.minddreamai.xyz](https://www.zero.xyz/host/api.minddreamai.xyz/llms.txt)
