# Agent Memory API – Recall Compress

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

Compresses a long content string into a structured summary with key decisions, constraints, and unresolved issues for AI agent handoff

## Facts

- Endpoint: POST https://agent-memory-api-bix5.onrender.com/api/recall/compress
- Price: $0.05/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-recall-compress-1b8cfe2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7o-IcFOTl_B0CU_mHQJGU

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-recall-compress-1b8cfe2d -d '<json body>'
```

Example prompt: Compress this long session transcript into a structured briefing for the next agent, focusing on 'database migration decisions', using standard compression level, and include a next-agent briefing: [paste content here].

## When to prefer this

Use this endpoint when an AI agent needs to hand off context to a downstream agent with a limited context window, when session memory has grown too large for efficient processing, or when you need a structured extraction of decisions and constraints from freeform content rather than a simple truncation. Prefer over raw summarization when you need structured output fields like key_decisions, constraints, and unresolved_issues separately.

## Known failure modes

- Missing required 'content' field returns 422 validation error
- Content too short or trivial may yield a compression_ratio near 1.0 with minimal compression
- Invalid compression_level value may return 400 or be silently ignored
- Payment failure via x402/USDC results in 402 Payment Required before processing
- Service unavailability on render.com free tier causes 503 or timeout
- Extremely long content may hit token limits and return partial results

## 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 compressed_summary string, arrays of key_decisions, constraints, and unresolved_issues, a next_agent_briefing string, original and compressed token counts, a compression_ratio float, and a next_recommended object suggesting the next API to call with its URL, reason, expected improvement, and price in USDC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "content"
 ],
 "properties": {
  "focus": {
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "compression_level": {
   "type": "string"
  },
  "next_agent_briefing": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "CompressContentResponse",
 "required": [
  "compressed_summary",
  "key_decisions",
  "constraints",
  "unresolved_issues",
  "next_agent_briefing",
  "original_tokens",
  "compressed_tokens",
  "compression_ratio",
  "next_recommended"
 ],
 "properties": {
  "constraints": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Constraints"
  },
  "key_decisions": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Key Decisions"
  },
  "original_tokens": {
   "type": "integer",
   "title": "Original Tokens"
  },
  "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"
    }
   }
  },
  "compressed_tokens": {
   "type": "integer",
   "title": "Compressed Tokens"
  },
  "compression_ratio": {
   "type": "number",
   "title": "Compression Ratio"
  },
  "unresolved_issues": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Unresolved Issues"
  },
  "compressed_summary": {
   "type": "string",
   "title": "Compressed Summary"
  },
  "next_agent_briefing": {
   "type": "string",
   "title": "Next Agent Briefing"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-memory-api-recall-compress-1b8cfe2d/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)
