> ## 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 Pinned Memory

> Adds a static fact to a memory store. The fact remains unchanged until you update or delete it. Each store supports up to 30 pinned facts, with up to 500 characters per fact.

<Info>
  Add a pinned memory when you want to provide a specific fact for this relationship. Tavus keeps it unchanged until you update or delete it.
</Info>


## OpenAPI

````yaml post /v2/memory-stores/{memory_store_id}/pinned
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/{memory_store_id}/pinned:
    parameters:
      - $ref: '#/components/parameters/memoryStoreId'
    post:
      tags:
        - Memory Stores
      summary: Create Pinned Memory
      description: >-
        Adds a static fact to a memory store. The fact remains unchanged until
        you update or delete it. Each store supports up to 30 pinned facts, with
        up to 500 characters per fact.
      operationId: createPinnedMemory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - memory
              properties:
                memory:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: Fact the PAL should consistently know. Up to 500 characters.
                  example: Prefers concise answers
      responses:
        '200':
          description: Pinned memory created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pinnedMemory'
        '400':
          description: >-
            Bad Request - memory is missing, empty, or longer than 500
            characters; or the store already has 30 pinned memories
        '401':
          description: Unauthorized
        '403':
          description: The caller does not own this memory store
        '404':
          description: Memory store not found
      security:
        - apiKey: []
components:
  parameters:
    memoryStoreId:
      name: memory_store_id
      in: path
      required: true
      description: Memory store identifier.
      schema:
        type: string
        minLength: 2
        maxLength: 64
        pattern: ^m[a-z0-9]+$
      example: m123456789abc
  schemas:
    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'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````