> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Summarize Memory



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/runtime/v1/memory/{memoryId}/summarize
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/v1/memory/{memoryId}/summarize:
    post:
      tags:
        - Runtime API - Memory
      summary: Summarize Memory
      operationId: RuntimeMemoryController_summarizeMemory
      parameters:
        - name: memoryId
          required: true
          in: path
          description: Memory identifier
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemorySummarizeDto'
      responses:
        '201':
          description: >-
            Summary text (string). Returns { success: false } if session not
            found or empty.
        '400':
          description: Invalid summarize payload.
        '401':
          description: Missing or invalid API key.
      security:
        - bearer: []
components:
  schemas:
    MemorySummarizeDto:
      type: object
      properties:
        prompt:
          type: string
          description: Custom summarization prompt
        model:
          type: string
          description: Model to use for summarization
          default: gpt-4o-mini
        provider:
          type: string
          description: Provider
          default: openai
          enum:
            - openai
            - anthropic
            - bedrock

````