{"uid":"cap_WAEr0QliQSMxwp0wKbsBK","slug":"agentkv-read-key-get-2f1f5044","name":"AgentKV – Read Key (GET)","description":"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","url":"https://api.agentx402.ai/v1/kv/dev-canary-1785214805","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7tiia0103aIU83v8IQ5bn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reads a value from an agent-native, client-side encrypted key-value store, billed per-request via x402 micropayment with no API key required.","exampleAgentPrompt":"Read the value stored under the key 'dev-canary-1785214805' in my AgentKV namespace — use my wallet as the namespace and pay the $0.003 read fee automatically.","exampleUseCases":[{"title":"Agent memory retrieval between sessions","prompt":"Fetch the value I stored under 'session-context-42' in my AgentKV store so I can restore my agent's state from last time."},{"title":"Shared config lookup across agent fleet","prompt":"Read the 'global-config' key from AgentKV using my ak_ account key — I need the latest configuration my agents should all be using."},{"title":"Check stored user preference","prompt":"Look up the 'user-pref-theme' key in my AgentKV namespace and tell me what value is saved there."}],"resultDescription":"Returns the stored value associated with the requested key in the caller's namespace (scoped to their wallet address or ak_ account key). The value was client-side encrypted at write time, so the agent receives the encrypted blob or the decrypted value depending on SDK usage. Response also includes key metadata such as existence status and last-write timestamp where available.","failureModes":["Key not found (404): the requested key does not exist in the namespace","Insufficient credits or payment failure (402): x402 payment header missing, malformed, or insufficient funds","Namespace mismatch: wallet/account key in payment doesn't match the stored namespace","Decryption failure: client-side encrypted value cannot be decrypted without the correct key","Rate limiting or service unavailability (503)"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to retrieve a previously stored value from a persistent, encrypted key-value store without managing API keys or signup — ideal for stateful agent workflows, inter-agent data sharing, and storing encrypted configuration or memory. Prefer over generic cloud KV stores (Redis, DynamoDB) when payment is via x402 micropayment and the namespace is automatically scoped to a wallet identity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:47:06.176Z","isFirstParty":false}