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

# Get Memory

> Retrieve a specific memory by ID with version history and relationships.

Get complete details for a single memory including its content, categories, version history,
and connected memories. Accepts any version of a memory ID, including older expired versions.

**Path Parameters:**
- `custom_user_id` (str): Unique identifier for the user
- `memory_id` (str): Memory UUID to retrieve

**Query Parameters:**
- `include_previous_versions` (bool): Include full version history for this memory. Default: true
- `include_connected_memories` (bool): Include related memories via relationships. Default: true

**Returns:**
- UserMemoryItem: Complete memory object with all metadata, categories, and optional version/relationship data



## OpenAPI

````yaml https://api.recallrai.com/api/openapi.json get /api/v1/users/{custom_user_id}/memory/{memory_id}
openapi: 3.1.0
info:
  title: api-backend
  description: This powers the Recallr AI API Backend
  version: 0.1.0
servers:
  - url: https://api.recallrai.com
    description: Production server
security: []
paths:
  /api/v1/users/{custom_user_id}/memory/{memory_id}:
    get:
      tags:
        - Memories
      summary: Get Memory
      description: >-
        Retrieve a specific memory by ID with version history and relationships.


        Get complete details for a single memory including its content,
        categories, version history,

        and connected memories. Accepts any version of a memory ID, including
        older expired versions.


        **Path Parameters:**

        - `custom_user_id` (str): Unique identifier for the user

        - `memory_id` (str): Memory UUID to retrieve


        **Query Parameters:**

        - `include_previous_versions` (bool): Include full version history for
        this memory. Default: true

        - `include_connected_memories` (bool): Include related memories via
        relationships. Default: true


        **Returns:**

        - UserMemoryItem: Complete memory object with all metadata, categories,
        and optional version/relationship data
      operationId: get_memory_api_v1_users__custom_user_id__memory__memory_id__get
      parameters:
        - name: custom_user_id
          in: path
          required: true
          schema:
            type: string
            title: Custom user ID
        - name: memory_id
          in: path
          required: true
          schema:
            type: string
            title: Memory ID
        - name: include_previous_versions
          in: query
          required: false
          schema:
            type: boolean
            description: Include full version history for this memory
            default: true
            title: Include Previous Versions
          description: Include full version history for this memory
        - name: include_connected_memories
          in: query
          required: false
          schema:
            type: boolean
            description: Include connected memories
            default: true
            title: Include Connected Memories
          description: Include connected memories
        - name: X-Recallr-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
            title: X-Recallr-Project-Id
        - name: X-Recallr-Api-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Recallr-Api-Key
      responses:
        '200':
          description: Memory retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserMemoryItem'
        '401':
          description: Authentication required
        '404':
          description: Memory not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    UserMemoryItem:
      properties:
        memory_id:
          type: string
          format: uuid
          title: Memory Id
        categories:
          items:
            type: string
          type: array
          title: Categories
        content:
          type: string
          title: Content
        event_date_start:
          type: string
          format: date-time
          title: Event Date Start
        event_date_end:
          type: string
          format: date-time
          title: Event Date End
        created_at:
          type: string
          format: date-time
          title: Created At
        expired_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expired At
        expiration_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Expiration Reason
        version_number:
          type: integer
          title: Version Number
        total_versions:
          type: integer
          title: Total Versions
        has_previous_versions:
          type: boolean
          title: Has Previous Versions
        previous_versions:
          anyOf:
            - items:
                $ref: '#/components/schemas/MemoryVersionInfo'
              type: array
            - type: 'null'
          title: Previous Versions
        connected_memories:
          anyOf:
            - items:
                $ref: '#/components/schemas/MemoryRelationship'
              type: array
            - type: 'null'
          title: Connected Memories
        merge_conflict_in_progress:
          type: boolean
          title: Merge Conflict In Progress
        merge_conflict_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Merge Conflict Id
        session_id:
          type: string
          title: Session Id
      type: object
      required:
        - memory_id
        - categories
        - content
        - event_date_start
        - event_date_end
        - created_at
        - version_number
        - total_versions
        - has_previous_versions
        - previous_versions
        - connected_memories
        - merge_conflict_in_progress
        - session_id
      title: UserMemoryItem
      description: Complete memory information with all metadata
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MemoryVersionInfo:
      properties:
        memory_id:
          type: string
          format: uuid
          title: Memory Id
        version_number:
          type: integer
          title: Version Number
        content:
          type: string
          title: Content
        event_date_start:
          type: string
          format: date-time
          title: Event Date Start
        event_date_end:
          type: string
          format: date-time
          title: Event Date End
        created_at:
          type: string
          format: date-time
          title: Created At
        expired_at:
          type: string
          format: date-time
          title: Expired At
        expiration_reason:
          type: string
          title: Expiration Reason
        merge_conflict_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Merge Conflict Id
      type: object
      required:
        - memory_id
        - version_number
        - content
        - event_date_start
        - event_date_end
        - created_at
        - expired_at
        - expiration_reason
      title: MemoryVersionInfo
      description: Information about a specific version of a memory
    MemoryRelationship:
      properties:
        memory_id:
          type: string
          format: uuid
          title: Memory Id
        content:
          type: string
          title: Content
      type: object
      required:
        - memory_id
        - content
      title: MemoryRelationship
      description: Connected memory information
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````