{"uid":"cap_hekDpAGvGOmzvih6SosRF","slug":"port-402-memory-read-f6e2f619","name":"Port 402 Memory Read","description":"Store a JSON value under a key in your persistent memory (namespace = your paying wallet).","url":"https://port-402-production.up.railway.app/v1/memory/:key?utm_source=zero.xyz","method":"PUT","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"],"type":"string"},"pathParams":{"type":"object","required":["key"],"properties":{"key":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,128}$","description":"Memory key"}}},"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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fRYpKzqhMPRFVGPk22YKc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a stored value from an agent's persistent key-value memory store by key name.","exampleAgentPrompt":"Read back the value stored under the key 'user-prefs:theme' from my persistent agent memory.","exampleUseCases":[{"title":"Recall saved agent configuration","prompt":"Fetch the value I stored under the key 'agent-config:retry-limit' in my persistent memory so I can use it to configure this new task."},{"title":"Retrieve workflow state mid-run","prompt":"Look up the memory key 'workflow:step3-output' and tell me what value is stored there — I need it to continue processing."},{"title":"Check stored user preference","prompt":"Pull up whatever I saved under 'session:user-timezone' in my persistent memory so I can schedule this correctly."}],"resultDescription":"Returns the value associated with the provided key from the agent's persistent memory store. The response is a JSON object containing the stored value (if it exists) for that key. Returns an empty or not-found response if the key does not exist.","failureModes":["Key not found — if the key was never written or has been deleted, the endpoint returns an empty or null value","Invalid key format — keys must match the pattern ^[A-Za-z0-9._:-]{1,128}$; invalid characters or length will cause a 400 error","Payment failure — if the x402 micropayment of $0.001 USDC cannot be processed, the request is rejected","Network/service downtime on Railway infrastructure causing 502 or timeout errors"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read back a value it (or another agent) previously stored in Port 402's persistent key-value memory. Ideal for stateful autonomous agent workflows that require memory between runs without any account setup or API key — only a per-call x402 micropayment is needed. Not suitable for bulk reads or scanning memory contents (use the list-keys sibling endpoint for that).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:30:51.435Z","isFirstParty":false,"canonicalSlug":"port-402-memory-read-f6e2f619"}