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

# A session's messages

> Oldest first. Assistant messages carry the sources their answer cited.



## OpenAPI

````yaml /openapi.yaml get /assistant/sessions/{id}/messages
openapi: 3.1.0
info:
  title: memloom local API
  version: 0.1.0
  description: >
    The HTTP API served by the `memloom serve` daemon on your machine. The CLI,
    the MCP server,

    and the viewer all route through this API. The daemon is the single owner of
    the store, so

    every client shares one consistent view of your memories.


    No authentication: the daemon binds to `127.0.0.1` only and is reachable
    solely from your

    own machine. Browser clients on other localhost ports are allowed via CORS.
servers:
  - url: http://127.0.0.1:4319
    description: Local memloom daemon
security: []
paths:
  /assistant/sessions/{id}/messages:
    get:
      summary: A session's messages
      description: Oldest first. Assistant messages carry the sources their answer cited.
      operationId: assistantMessages
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The messages.
          content:
            application/json:
              schema:
                type: object
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/AssistantMessage'
components:
  schemas:
    AssistantMessage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        role:
          type: string
          enum:
            - user
            - assistant
        content:
          type: string
        sources:
          type: array
          description: The passages an assistant answer cited (empty on user messages).
          items:
            $ref: '#/components/schemas/AssistantSource'
        createdAt:
          type: string
    AssistantSource:
      type: object
      description: >-
        One recall hit an answer was grounded in; `n` matches the `[n]` markers
        in the text.
      properties:
        'n':
          type: integer
          example: 1
        kind:
          type: string
          enum:
            - memory
            - context
        id:
          type: string
          format: uuid
        title:
          type: string
          example: runbook.pdf › Database failover
        snippet:
          type: string
          description: The passage exactly as the model saw it.
        similarity:
          type: number
          example: 0.81
        date:
          type: string
          description: The memory's assertion day, YYYY-MM-DD (absent on context chunks).
        memoryType:
          type: string
          enum:
            - fact
            - preference
            - episode
            - procedure
          description: Absent on context chunks.
        rrfScore:
          type: number
        graphNodeId:
          type: string
          format: uuid
          description: >-
            The graph node this source maps to (the memory, or the chunk's
            parent document).

````