> ## 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.

# Create Memory

> Create a new memory blob for a user. Requires the user's ID and Memory Key obtained from an approved access request. Content should ideally be encrypted client-side before sending, or the API/SDK can handle encryption.

Create a new memory blob for a user. Requires the user's ID and Memory Key obtained from an approved access request.

Content sent in the `content` field should ideally be encrypted client-side using the user's `encryption_key` before sending. Alternatively, if sending plaintext, ensure the API or SDK handles server-side encryption.

### Authorization

Requires `Bearer` token authentication using your Developer JWT.


## OpenAPI

````yaml POST /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:
    post:
      tags:
        - Memory Management
      summary: Create Memory
      description: >-
        Create a new memory blob for a user. Requires the user's ID and Memory
        Key obtained from an approved access request. Content should ideally be
        encrypted client-side before sending, or the API/SDK can handle
        encryption.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMemoryRequest'
      responses:
        '201':
          description: Memory blob created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MemoryBlobResponse'
        '400':
          description: Bad Request - Missing required fields or invalid data.
        '401':
          description: Unauthorized - Invalid or expired JWT.
        '403':
          description: >-
            Forbidden - The authenticated developer does not have approved
            access (with write permissions) for this user_id.
      security:
        - bearerAuth: []
components:
  schemas:
    CreateMemoryRequest:
      type: object
      required:
        - user_id
        - memoryKey
        - content
      properties:
        user_id:
          type: string
          format: uuid
          description: User's unique ID.
        memoryKey:
          type: string
          description: User's memory key.
        content:
          type: string
          description: >-
            The memory content (plaintext or pre-encrypted depending on
            implementation).
        title:
          type: string
          description: Optional title for the memory.
        summary:
          type: string
          description: Optional brief summary of the memory.
        tags:
          type: array
          items:
            type: string
          description: >-
            List of tag names (strings) to associate. New tags will be created
            if they don't exist.
        importance:
          type: number
          description: Optional importance score (e.g., 1-5 or 0-1).
          format: float
          example: 0.8
        confidence:
          type: number
          description: Optional confidence score (0-1).
          format: float
          example: 0.95
        source:
          type: string
          description: Optional identifier for the source application/context.
          example: my-chat-app
    MemoryBlobResponse:
      type: object
      description: >-
        Represents a memory blob as returned by Create/Update operations
        (content is not included).
      properties:
        id:
          type: string
        user_id:
          type: string
          format: uuid
        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
        tag_ids:
          type: array
          items:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained via `/auth/token` endpoint.

````