# AgentKV Key-Value Read (GET)

> AgentKV Key-Value Read (GET) is a paid API for AI agents from api.agentx402.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Reads the value stored at a specific key in an agent-native encrypted key-value store, billed per-request via x402 micropayment with no API key required.

## Facts

- Endpoint: GET https://api.agentx402.ai/v1/kv/smoke-1785130642
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkv-key-value-read-get-b0e106ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UskC6oT2k3XRz8Pzbt8Z1

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 agentkv-key-value-read-get-b0e106ee
```

Example prompt: Read the value stored at key 'smoke-1785130642' in my AgentKV namespace — use my wallet as the namespace and return whatever was saved there.

## When to prefer this

Choose this endpoint when an AI agent needs to read back data it previously stored in a persistent, encrypted, per-agent namespace without any signup or API key — ideal for stateless agent workflows that need cross-session memory, credential storage, or configuration retrieval, paid via x402 micropayments. Prefer this over traditional KV stores (Redis, DynamoDB) when operating in a wallet-native, no-auth-setup environment.

## Known failure modes

- Key not found — returns error if the key has never been written or was deleted
- Payment failure — x402 micropayment of $0.003 USDC rejected or insufficient balance causes request to fail
- Wrong namespace — if the wallet or ak_ key used differs from the one that wrote the value, access is denied
- Decryption failure — if the client-side encryption key is lost or mismatched, the raw ciphertext is unreadable
- Rate limits or credit exhaustion — prepaid credits depleted returns an error before serving the request

## How this service works

Agent-native encrypted key-value store, paid per request over x402 — no signup, no API key. The payer's wallet (or an ak_ account key) is the namespace; values are client-side encrypted. Write $0.005, read $0.003; prepay $1 = 10,000 credits at 1/10 the per-op price (POST /v1/credits/deposit). SDK: npm i @agentkv/client. Docs: https://agentx402.ai

## Output

Returns the value stored at the specified key within the caller's namespace (scoped to the paying wallet or ak_ account key). The value was client-side encrypted before storage, so the agent receives the encrypted blob or, if using the SDK, the decrypted value. Returns a 404-equivalent if the key does not exist.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/agentkv-key-value-read-get-b0e106ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentx402.ai](https://www.zero.xyz/host/api.agentx402.ai/llms.txt)
