{"uid":"cap_buhfoeEzA8F53i-P9TJNc","slug":"agentpay-memory-storage-fb0375d2","name":"AgentPay Memory Storage","description":"Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.","url":"https://agentpay.help/v1/memory","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":200,"description":"Key (required for get/set/delete)"},"value":{"description":"Value to store (required for set, any JSON)"},"action":{"enum":["get","set","delete","list"],"type":"string","description":"Operation"},"namespace":{"type":"string","maxLength":50,"description":"Namespace, default 'default'"}}},"responseSchema":{"type":"json","example":{"ok":true,"key":"user_name","value":"Ronald","namespace":"prefs"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G_ng5D-izMMnH_cluNUtS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Key-value memory store for AI agents — get, set, delete, or list persistent data via pay-per-call USDC micropayments, no API key required.","exampleAgentPrompt":"Save 'Ronald' under the key 'user_name' in my 'prefs' namespace so you can remember it next time — use AgentPay memory and pay with USDC.","exampleUseCases":[{"title":"Persist user preferences across sessions","prompt":"Remember that my preferred language is Spanish and my timezone is UTC-5 — store both in my 'prefs' namespace so you can recall them in future conversations."},{"title":"Retrieve saved agent context","prompt":"What's stored under the key 'last_task' in my 'workflow' namespace? Pull it from agent memory so we can pick up where we left off."},{"title":"Clear stale agent state","prompt":"Delete the key 'session_token' from the 'auth' namespace in agent memory — it's expired and I don't want it hanging around."}],"resultDescription":"Returns a JSON object with 'ok' (boolean success flag), 'key' (the targeted key), 'value' (the stored data for get operations), and 'namespace'. For list operations, returns the set of keys in the namespace.","failureModes":["Missing required 'action' field returns a 400-level error","'get' or 'delete' on a non-existent key may return ok:false or null value","Payment failure via x402 returns 402 Payment Required","Namespace or key exceeding max length (50/200 chars) causes validation error","'set' without a 'value' field fails with a missing parameter error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs lightweight persistent key-value memory without managing accounts, API keys, or a separate database — ideal for stateless agents that need to recall user preferences, session state, or task context across calls, paying only fractions of a cent per operation in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:03:48.873Z","isFirstParty":false}