# 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 AgentKV key-value store at a specific key path, billed per request via x402 micropayment with no signup required.

## Facts

- Endpoint: GET https://api.agentx402.ai/v1/kv/canary-kv-1785218442
- 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-0a8e8a2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6jhm8TUh_VzjRrxP-Ti-L

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

Example prompt: Read the value stored at key 'canary-kv-1785218442' in my AgentKV namespace and return its decrypted contents.

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve a previously stored encrypted value without any account signup or API key, billing only for what it reads. It is ideal for stateless agents that persist memory, secrets, or configuration keyed to a wallet address across sessions. Prefer this over traditional KV stores when the agent operates in a trustless, pay-per-use environment and namespace isolation by wallet is desirable.

## Known failure modes

- Key not found (404) — no value exists at that path in the namespace
- Insufficient credits or payment failure — x402 payment rejected, read blocked
- Unauthorized namespace access — wallet or ak_ key does not match namespace
- Decryption failure — client-side key mismatch or corrupted value
- Rate limiting — too many requests in a short window
- Network/server error — 5xx response from api.agentx402.ai

## 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 decrypted value stored at the specified key in the caller's AgentKV namespace. If the key exists, the response contains the stored payload (object, string, or blob). If the key does not exist, a 404-equivalent response is returned. Billing of $0.003 USDC is deducted via x402 on each successful read.

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