# JP Data API — Persistent Key-Value Memory Store

> JP Data API — Persistent Key-Value Memory Store is a paid API for AI agents from jp-data-api-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Stores a string value under a user-defined namespace and key, persisting it across sessions and processes for AI agent long-term memory.

## Facts

- Endpoint: GET https://jp-data-api-production.up.railway.app/memory/set
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jp-data-api-persistent-key-value-memory-store-4f75e97e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YvZvWxmDKNp9gHz2pS8PX

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 jp-data-api-persistent-key-value-memory-store-4f75e97e
```

Example prompt: Save my current task progress under namespace 'agt_7f3k9x2m' with key 'task_state' and value '{"step":3,"lastProcessed":"item_42","status":"in_progress"}' so I can resume it next session.

## When to prefer this

Use this endpoint when an AI agent needs to persist state, memory, or context between separate runs or sessions without any signup or API key setup — ideal for lightweight agent checkpointing, caching, or cross-run context storage where a pay-per-write model ($0.002 USDC) is acceptable over a managed database subscription.

## Known failure modes

- Missing required query params (ns, key, or value) returns a 400-level error
- Namespace shorter than 8 characters is rejected
- Value exceeding 4000 characters is rejected
- Payment not completed results in 402 Payment Required
- Network or Railway infrastructure downtime causes 5xx errors

## How this service works

Persistent key-value memory for AI agents. Store a value under your namespace and key; survives across sessions, restarts and processes. No signup, no API key — pay per write. Use for agent long-term memory, task state, caching, checkpoints, cross-run context.

## Output

A confirmation response indicating that the value has been successfully stored under the given namespace and key, available for future retrieval across sessions and restarts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ns",
      "key",
      "value"
     ],
     "properties": {
      "ns": {
       "type": "string",
       "description": "your private namespace (use a long random string or wallet address, min 8 chars)"
      },
      "key": {
       "type": "string"
      },
      "value": {
       "type": "string",
       "description": "text or JSON, up to 4000 chars"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jp-data-api-persistent-key-value-memory-store-4f75e97e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jp-data-api-production.up.railway.app](https://www.zero.xyz/host/jp-data-api-production.up.railway.app/llms.txt)
