{"uid":"cap_9J7SZ0rjtDPdWHXU0hVrR","slug":"a2apay-task-memory-resume-3aeb79d5","name":"a2apay Task Memory Resume","description":"Resume a task: read back the latest version of every key you wrote under a given taskId via /api/agent-memory, or that another agent explicitly granted you read access to. Priced below a write on purpose -- reads are cheaper than writes here; this price is a provisional first cut, not a settled policy.","url":"https://a2apay.io/api/agent-memory/resume?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.014","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.014/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.014","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8p_4Ug7-4Avf4wBOVYDGi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.014","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reads back the latest version of all keys stored under a given agent task ID from persistent agent memory, supporting both self-written and explicitly granted external keys.","exampleAgentPrompt":"Resume task abc-1234 by reading back all the memory keys I previously stored for it — I need to reload my full task state and continue from where I left off.","exampleUseCases":[{"title":"Resuming a paused multi-step agent workflow","prompt":"I had to pause the research task I was running under task ID task-5a9f2c — can you reload all the memory keys I saved for it so the agent can pick up exactly where it stopped?"},{"title":"Reading memory keys granted by a collaborating agent","prompt":"The orchestrator agent granted my sub-agent read access to task ID collab-88d3 — fetch all the keys stored under that task so I can see what the other agent recorded."},{"title":"Restoring agent context after a crash or restart","prompt":"My agent crashed mid-run and I need to restore its state for task ID recovery-4412 — pull back every key it had written to memory so I can resume the job without starting over."}],"resultDescription":"Returns the latest version of every memory key written under the specified taskId (either by the calling agent or by agents who granted read access). The response is a structured object containing all key-value pairs representing the agent's persisted task state at the most recent snapshot.","failureModes":["Task ID not found — no memory keys exist for the given taskId","Unauthorized access — caller has not written any keys under the taskId and no external read grant exists","Invalid or malformed request body — missing required fields in the POST body","Payment failure — insufficient USDC balance or x402 payment not processed","ICP infrastructure unavailability — redundant backend temporarily unreachable","Expired or revoked access grant — another agent's previously granted read permission has been removed"],"whenToPreferThis":"Use this endpoint when an agent needs to resume a previously interrupted or paused task by reading back its full persisted state from a2apay agent memory. It is the read complement to the /api/agent-memory write endpoint and is cheaper per call by design. Prefer this over general key-value stores when the task was written using a2apay agent memory, or when cross-agent memory sharing via explicit grants is required. Ideal for multi-agent orchestration pipelines where a sub-agent must recover context stored by itself or delegated by an orchestrator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:10.001Z","isFirstParty":false,"canonicalSlug":"a2apay-task-memory-resume-3aeb79d5"}