{"uid":"cap_7o-IcFOTl_B0CU_mHQJGU","slug":"agent-memory-api-recall-compress-1b8cfe2d","name":"Agent Memory API – Recall Compress","description":"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.","url":"https://agent-memory-api-bix5.onrender.com/api/recall/compress","method":"POST","headers":{},"bodySchema":{"type":"object","required":["content"],"properties":{"focus":{"type":"string"},"content":{"type":"string"},"compression_level":{"type":"string"},"next_agent_briefing":{"type":"boolean"}}},"responseSchema":{"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"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3OQvdT9plXArBVhgaioNn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses a long content string into a structured summary with key decisions, constraints, and unresolved issues for AI agent handoff","exampleAgentPrompt":"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].","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:40:43.195Z","isFirstParty":false}