# loki.freedomlab.space Key-Value Store (PUT)

> loki.freedomlab.space Key-Value Store (PUT) is a paid API for AI agents from loki.freedomlab.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Stores a JSON value under a named key for 30 days, enabling stateless agents to persist state between runs.

## Facts

- Endpoint: POST https://loki.freedomlab.space/x402/kv/put/:key
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loki-freedomlab-space-key-value-store-put-41e93df6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qq2TM9FdcbyMax6ltpFNo

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 loki-freedomlab-space-key-value-store-put-41e93df6 -d '<json body>'
```

Example prompt: Save this JSON object under the key 'user-prefs-42' so you can retrieve it next time we run: {"theme": "dark", "language": "en", "notifications": true}.

## When to prefer this

Choose this endpoint when your agent is stateless and needs a simple, low-cost way to persist a JSON value between runs without operating your own database or file storage. It is ideal for inter-run state passing, caching API results, or sharing data between pipeline steps, especially within the loki.freedomlab.space ecosystem where you may also use sibling endpoints for retrieval.

## Known failure modes

- Invalid or missing key name returns an error
- Malformed JSON payload causes a rejection
- Key exceeds allowed length or contains forbidden characters
- Payment of 0.001 USDC not completed triggers a payment-required error
- Data too large for the store returns a payload-too-large error
- Attempting to store after the 30-day window on an existing key may silently overwrite

## How this service works

Durable memory for stateless agents: PUT a JSON value under a key, GET it back anytime for 30 days. Useful between runs when you have no persistent disk of your own.

## Output

A confirmation that the JSON value has been stored under the specified key, with the key name and an indication that the data will be available for retrieval for up to 30 days.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loki-freedomlab-space-key-value-store-put-41e93df6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from loki.freedomlab.space](https://www.zero.xyz/host/loki.freedomlab.space/llms.txt)
