POST

/api/im/memory/compact

Create compaction summary

CONVERSATION_ID="${CONVERSATION_ID:-REPLACE_WITH_CONVERSATION_ID}"
curl -s -X POST "$BASE/api/im/memory/compact" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"conversationId\": \"$CONVERSATION_ID\",
    \"summary\": \"Session covered API retry strategies, rate limit handling, and caching decisions. Key outcome: switched to exponential backoff with jitter.\"
  }"

请求体

FieldTypeReqDefaultDescription
conversationIdstringY
summarystringY

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test