# Agent Memory API – Package Context

> Agent Memory API – Package Context is a paid API for AI agents from agent-memory-api-bix5.onrender.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Packages and retrieves the full encrypted memory context for an AI agent project, including stored memories and next recommended action.

## Facts

- Endpoint: POST https://agent-memory-api-bix5.onrender.com/api/context/package
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-memory-api-package-context-b236505e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SRCJpqZlHUhg5twEEQ93j

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 agent-memory-api-package-context-b236505e -d '<json body>'
```

Example prompt: Package up all the encrypted memory context for my agent project with ID 'proj_abc123', include the stored memories, and give me a full summary — I want to see everything the agent knows before it picks up the next task.

## When to prefer this

Use this endpoint when an AI agent needs to reconstitute its full memory context before continuing a task, resuming a session, or handing off to another agent. Ideal for workflows that require auditing what an agent has stored or preparing a bundled context package before the next action. Best suited for projects already using the Agent Memory API ecosystem with USDC/Base payments.

## Known failure modes

- Missing project_id returns 422 validation error
- Unknown or inaccessible project_id returns 404 not found
- Payment not provided or insufficient USDC balance returns 402 payment required
- Server cold-start on Render may cause intermittent latency or 503 timeouts
- Invalid summary_level value may return 400 bad request

## How this service works

Pay-per-request encrypted memory APIs for autonomous AI agents using x402. Store, recall, and audit AI agent memory with AES-256 encryption. Built for USDC/Base payments and Japanese AI agent workflows.

## Output

Returns a context_package object containing the bundled encrypted memories and project context, plus a next_recommended object specifying the best next API to call (name, URL, reason, expected improvement, and price in USDC).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "project_id"
 ],
 "properties": {
  "project_id": {
   "type": "string"
  },
  "summary_level": {
   "type": "string"
  },
  "include_memories": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "PackageContextResponse",
 "required": [
  "context_package",
  "next_recommended"
 ],
 "properties": {
  "context_package": {
   "type": "object",
   "title": "Context Package",
   "additionalProperties": true
  },
  "next_recommended": {
   "type": "object",
   "title": "NextRecommendation",
   "required": [
    "api_name",
    "url",
    "reason",
    "expected_improvement",
    "price_usdc"
   ],
   "properties": {
    "url": {
     "type": "string",
     "title": "Url"
    },
    "reason": {
     "type": "string",
     "title": "Reason"
    },
    "api_name": {
     "type": "string",
     "title": "Api Name"
    },
    "price_usdc": {
     "type": "number",
     "title": "Price Usdc"
    },
    "expected_improvement": {
     "type": "string",
     "title": "Expected Improvement"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-memory-api-package-context-b236505e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-memory-api-bix5.onrender.com](https://www.zero.xyz/host/agent-memory-api-bix5.onrender.com/llms.txt)
