{"uid":"cap_c0l4IeUtLr8EXvnk_Ieyw","slug":"agentkv-read-key-get-0c1e3b9e","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/canary-kv-1785514797","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_O5BZi60yt8vPoAmktfckx","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 an encrypted value from the agent-native key-value store for the specified key, billed per-request via x402 micropayment.","exampleAgentPrompt":"Read the value stored under the key 'canary-kv-1785514797' from my AgentKV namespace and return what's there.","exampleUseCases":[{"title":"Retrieve persistent agent configuration","prompt":"Fetch the value I stored earlier in AgentKV under the key 'agent-config' — I need my agent to reload its settings without me having to pass them in again."},{"title":"Load saved agent state mid-task","prompt":"My agent paused a multi-step workflow — can you read the checkpoint data from AgentKV under the key 'workflow-state-42' so it can pick up where it left off?"},{"title":"Retrieve a shared secret between agents","prompt":"Pull the shared API credential we stored in AgentKV under 'shared-secret-prod' so this new agent instance can authenticate with the downstream service."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:49:13.502Z","isFirstParty":false}