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

# Create Memory Store

> Creates a persistent memory store for one PAL and participant. This is useful when you need to add pinned memories before the participant's first conversation. Otherwise, passing one tag in `participant_tags` to Create Conversation creates the store automatically.

Only one active store may exist for a given `pal_id` and `participant_tag`.


<Info>
  Create a memory store when you want to add pinned memories before a participant's first conversation. Otherwise, pass one tag in `participant_tags` to [Create Conversation](/api-reference/conversations/create-conversation), and Tavus creates the store automatically.
</Info>


## OpenAPI

````yaml post /v2/memory-stores
openapi: 3.0.3
info:
  title: Tavus Developer API Collection
  version: 1.0.0
  contact: {}
servers:
  - url: https://tavusapi.com
security:
  - apiKey: []
tags:
  - name: Videos
  - name: Faces
  - name: Voices
  - name: Conversations
  - name: Deployments
  - name: PALs
  - name: Tools
  - name: PAL Tools
  - name: Pronunciation Dictionaries
  - name: Replacements
  - name: Transcriptions
  - name: Documents
  - name: Memory Stores
paths:
  /v2/memory-stores:
    post:
      tags:
        - Memory Stores
      summary: Create Memory Store
      description: >
        Creates a persistent memory store for one PAL and participant. This is
        useful when you need to add pinned memories before the participant's
        first conversation. Otherwise, passing one tag in `participant_tags` to
        Create Conversation creates the store automatically.


        Only one active store may exist for a given `pal_id` and
        `participant_tag`.
      operationId: createMemoryStore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - pal_id
                - participant_tag
              properties:
                pal_id:
                  type: string
                  description: PAL that will use this memory store.
                  example: p123456789ab
                participant_tag:
                  type: string
                  description: Stable identifier for the participant in your application.
                  example: user_12345
                pinned_memories:
                  type: array
                  maxItems: 30
                  description: >-
                    Optional static facts to seed into the store. Up to 30
                    facts, each with up to 500 characters.
                  items:
                    type: string
                    minLength: 1
                    maxLength: 500
                  example:
                    - Prefers concise answers
                    - Uses the Pro plan
      responses:
        '200':
          description: Memory store created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/memoryStore'
        '400':
          description: Bad Request - invalid request body
        '401':
          description: Unauthorized
        '403':
          description: The PAL is inaccessible
        '409':
          description: A memory store already exists for this PAL and participant
      security:
        - apiKey: []
components:
  schemas:
    memoryStore:
      allOf:
        - $ref: '#/components/schemas/memoryStoreSummary'
        - type: object
          required:
            - pinned_memories
            - learned
            - created_at
            - updated_at
          properties:
            pinned_memories:
              type: array
              maxItems: 30
              description: Pinned facts in this store.
              items:
                $ref: '#/components/schemas/pinnedMemory'
            learned:
              $ref: '#/components/schemas/learnedMemory'
            created_at:
              type: string
              description: When the store was created.
              example: '2026-08-24 12:00:00'
            updated_at:
              type: string
              description: When the store was last updated.
              example: '2026-08-24 12:00:00'
    memoryStoreSummary:
      type: object
      required:
        - memory_store_id
        - pal_id
        - participant_tag
      properties:
        memory_store_id:
          type: string
          description: Unique identifier for the memory store.
          example: m123456789abc
        pal_id:
          type: string
          description: PAL this store belongs to.
          example: p123456789ab
        participant_tag:
          type: string
          description: Developer-provided participant identifier.
          example: user_12345
    pinnedMemory:
      type: object
      required:
        - memory_id
        - memory
        - created_at
        - updated_at
      properties:
        memory_id:
          type: string
          description: Unique identifier for the pinned memory.
          example: pm123456789abc
        memory:
          type: string
          maxLength: 500
          description: Pinned fact.
          example: Prefers concise answers
        created_at:
          type: string
          description: When the pinned memory was created.
          example: '2026-08-24 12:00:00'
        updated_at:
          type: string
          description: When the pinned memory was last updated.
          example: '2026-08-24 12:00:00'
    learnedMemory:
      type: object
      description: >-
        Memory learned from prior conversations. A filtered request may return
        only profile or timeline.
      properties:
        profile:
          type: object
          additionalProperties: true
          description: >-
            Structured participant information learned across conversations,
            nested up to three levels.
          example:
            preferences:
              communication_style: concise
        timeline:
          type: object
          additionalProperties: true
          description: >-
            Time-aware interaction history grouped into recent conversations,
            days, weeks, and months.
          example:
            recent_conversations:
              - timestamp: '2026-08-24T19:00:00Z'
                summary: Discussed onboarding progress and next steps.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````