# 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 an encrypted value from the agent-native key-value store for the specified key, billed per-request via x402 micropayment.

## Facts

- Endpoint: GET https://api.agentx402.ai/v1/kv/canary-kv-1785514797
- 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-0c1e3b9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c0l4IeUtLr8EXvnk_Ieyw

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-0c1e3b9e
```

Example prompt: Read the value stored under the key 'canary-kv-1785514797' from my AgentKV namespace and return what's there.

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve previously stored state, configuration, secrets, or memory in a serverless, signupless manner using micropayments. Ideal for agent pipelines that require persistent key-value lookup without managing a separate database, auth system, or API keys — the payer's wallet IS the namespace. Prefer over traditional KV stores when operating in a web3 / x402 payment context or when zero-onboarding agent infrastructure is a priority.

## Known failure modes

- Key not found — returns 404 if the specified key has never been written or has expired
- Payment failure — x402 payment header missing, insufficient funds, or invalid wallet returns 402
- Unauthorized namespace — attempting to read a key outside the payer's wallet namespace returns 403
- Rate limit or credit exhaustion — if prepaid credits are depleted, subsequent reads are rejected
- Network timeout — transient connectivity issues may cause 5xx errors

## 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 client-side encrypted value associated with the specified key within the payer's wallet-scoped namespace. The response includes the stored data (decryptable client-side) or a not-found indicator if the key does not exist. Billed $0.003 USDC per successful read via x402.

## 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-0c1e3b9e/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)
