# a2apay Task Memory Resume

> a2apay Task Memory Resume is a paid API for AI agents from a2apay.io, paid per call via x402, $0.014/call, status unknown (last checked 2026-10-11).

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.

## Facts

- Endpoint: POST https://a2apay.io/api/agent-memory/resume?utm_source=zero.xyz
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/a2apay-task-memory-resume-3aeb79d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9J7SZ0rjtDPdWHXU0hVrR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability a2apay-task-memory-resume-3aeb79d5 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/a2apay-task-memory-resume-3aeb79d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from a2apay.io](https://www.zero.xyz/host/a2apay.io/llms.txt)
