# AgentKV – Read Key (GET)

> AgentKV – Read Key (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-14).

Reads (retrieves) a value from an agent-native encrypted key-value store using x402 micropayments, with no signup or API key required.

## Facts

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

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-read-key-get-16010b0f
```

Example prompt: Read back the value stored under the key 'smoke-2026-07-30' in my AgentKV store — my wallet is my namespace and I want the decrypted result.

## When to prefer this

Choose this endpoint when an AI agent needs lightweight, encrypted, persistent key-value reads with zero onboarding friction — no API key, no account signup, just a crypto wallet as the identity/namespace. It is ideal for agent memory, state persistence between sessions, and multi-agent shared configuration. Prefer it over traditional KV stores when micropayment-native access (x402) and client-side encryption are requirements, or when you want pay-per-use pricing at $0.003/read (or cheaper with prepaid credits).

## Known failure modes

- Key not found (404) — the requested key does not exist in the namespace
- Insufficient payment or payment failure via x402 (402) — wallet has no funds or payment is rejected
- Unauthorized namespace access — wrong wallet or ak_ key used, returning 401/403
- Rate limit or quota exceeded if credits are exhausted
- Malformed request (400) — invalid method or missing required fields

## 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 stored (client-side encrypted) value associated with the requested key within the caller's wallet or ak_ account namespace. On success, the response includes the value payload and any associated metadata. Costs $0.003 USDC per read, deducted via x402 micropayment.

## 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-read-key-get-16010b0f/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)
