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

# Add Memory

> Add messages into the user-memory + agent-memory pipelines.



## OpenAPI

````yaml /api-reference/openapi-oss.json post /api/v1/memory/add
openapi: 3.1.0
info:
  title: everos
  description: md-first memory extraction framework
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/memory/add:
    post:
      tags:
        - memory
      summary: Add Memory
      description: Add messages into the user-memory + agent-memory pipelines.
      operationId: add_memory_api_v1_memory_add_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemorizeAddRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope_AddResponseData_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MemorizeAddRequest:
      properties:
        session_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Session Id
        app_id:
          type: string
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_.@+-]+$
          title: App Id
          default: default
        project_id:
          type: string
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_.@+-]+$
          title: Project Id
          default: default
        messages:
          items:
            $ref: '#/components/schemas/MessageItemDTO'
          type: array
          maxItems: 500
          minItems: 1
          title: Messages
      type: object
      required:
        - session_id
        - messages
      title: MemorizeAddRequest
    SuccessEnvelope_AddResponseData_:
      properties:
        request_id:
          type: string
          title: Request Id
        data:
          $ref: '#/components/schemas/AddResponseData'
      type: object
      required:
        - request_id
        - data
      title: SuccessEnvelope[AddResponseData]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MessageItemDTO:
      properties:
        sender_id:
          type: string
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_.@+-]+$
          title: Sender Id
        sender_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Name
        role:
          type: string
          enum:
            - user
            - assistant
            - tool
          title: Role
        timestamp:
          type: integer
          exclusiveMinimum: 0
          title: Timestamp
          description: >-
            Message event time as Unix epoch in **milliseconds** (v1 API
            contract; the algo layer auto-detects sec vs ms for backward compat
            but the contract is ms).
        content:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/ContentItemDTO'
              type: array
          title: Content
        tool_calls:
          anyOf:
            - items:
                $ref: '#/components/schemas/ToolCallDTO'
              type: array
            - type: 'null'
          title: Tool Calls
        tool_call_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Tool Call Id
      type: object
      required:
        - sender_id
        - role
        - timestamp
        - content
      title: MessageItemDTO
    AddResponseData:
      properties:
        message_count:
          type: integer
          title: Message Count
        status:
          type: string
          enum:
            - accumulated
            - extracted
          title: Status
      type: object
      required:
        - message_count
        - status
      title: AddResponseData
    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
    ContentItemDTO:
      properties:
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - doc
            - pdf
            - html
            - email
          title: Type
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Uri
        base64:
          anyOf:
            - type: string
            - type: 'null'
          title: Base64
        ext:
          anyOf:
            - type: string
            - type: 'null'
          title: Ext
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        extras:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extras
      additionalProperties: false
      type: object
      required:
        - type
      title: ContentItemDTO
      description: Content piece (v1 API brief appendix A).
    ToolCallDTO:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
          default: function
        function:
          $ref: '#/components/schemas/ToolFunctionDTO'
      type: object
      required:
        - id
        - function
      title: ToolCallDTO
    ToolFunctionDTO:
      properties:
        name:
          type: string
          title: Name
        arguments:
          type: string
          title: Arguments
      type: object
      required:
        - name
        - arguments
      title: ToolFunctionDTO

````