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

# Get Memories

> Retrieve a list of memory blobs for a specific user. Requires the user's ID obtained from an approved access request.

Retrieve a list of memory blobs for a specific user. Requires the user's ID obtained from an approved access request.

The `content` field in the response blobs will be encrypted and needs to be decrypted using the user's `encryption_key`.

### Authorization

Requires `Bearer` token authentication using your Developer JWT.


## OpenAPI

````yaml GET /memory-blobs
openapi: 3.0.3
info:
  title: Memoram API v1
  description: >-
    API for interacting with the Memoram platform, managing access, memories,
    and tags.
  version: 1.0.0
  contact:
    name: Memoram Support
    url: https://memoram.app
    email: support@memoram.app
servers:
  - url: https://api.memoram.app/api/v1
    description: Production Server
security: []
tags:
  - name: Access Management
    description: >-
      Endpoints for obtaining authentication tokens and managing access requests
      to user memories.
  - name: Memory Management
    description: >-
      Endpoints for creating, retrieving, updating, and deleting user memory
      blobs.
  - name: Memory Tag Management
    description: Endpoints for retrieving memory tags.
paths:
  /memory-blobs:
    get:
      tags:
        - Memory Management
      summary: Get Memories
      description: >-
        Retrieve a list of memory blobs for a specific user. Requires the user's
        ID obtained from an approved access request.
      parameters:
        - name: user_id
          in: query
          required: true
          description: The unique ID of the user whose memories are being requested.
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          required: false
          description: Maximum number of memory blobs to return.
          schema:
            type: integer
            default: 10
        - name: cursor
          in: query
          required: false
          description: Cursor for pagination, obtained from a previous response.
          schema:
            type: string
        - name: tags
          in: query
          required: false
          description: Comma-separated list of tag names to filter by.
          schema:
            type: string
        - name: searchQuery
          in: query
          required: false
          description: >-
            Search term to filter memories by (searches title, summary, and
            content).
          schema:
            type: string
      responses:
        '200':
          description: List of memory blobs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBlobListResponse'
        '400':
          description: Bad Request - Missing or invalid user_id.
        '401':
          description: Unauthorized - Invalid or expired JWT.
        '403':
          description: >-
            Forbidden - The authenticated developer does not have approved
            access for this user_id.
      security:
        - bearerAuth: []
components:
  schemas:
    MemoryBlobListResponse:
      type: object
      properties:
        memoryBlobs:
          type: array
          items:
            $ref: '#/components/schemas/MemoryBlob'
        next_cursor:
          type: string
          nullable: true
          description: >-
            Cursor for fetching the next page of results, or null if this is the
            last page.
    MemoryBlob:
      type: object
      description: Represents a single memory blob (content is encrypted).
      properties:
        id:
          type: string
        user_id:
          type: string
          format: uuid
        content:
          type: string
          description: >-
            Encrypted memory content. Needs decryption using the user's
            encryption key.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        source:
          type: string
        title:
          type: string
        summary:
          type: string
        importance:
          type: number
          format: float
        confidence:
          type: number
          format: float
        tags:
          type: array
          items:
            type: string
          description: List of tag names associated.
        tag_ids:
          type: array
          items:
            type: string
          description: List of tag IDs associated.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained via `/auth/token` endpoint.

````