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

# Search memories [OSS + Cloud]



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/memory/search
openapi: 3.1.0
info:
  title: EverOS Cloud Memory API
  version: 2.0.0
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  contact:
    name: EverMind AI
    email: service@evermind.ai
    url: https://github.com/EverMind-AI/everos-cloud-sdk-python
  description: >-
    Official Python client for the EverOS Cloud Memory API. Add, search,
    retrieve, and manage long-term memory for your AI applications over a typed
    interface (pydantic v2, with full type hints). Install and usage guides:
    https://github.com/EverMind-AI/everos-cloud-sdk-python
servers:
  - url: https://api.evermind.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v2/memory/search:
    post:
      tags:
        - Memory
      summary: Search memories [OSS + Cloud]
      operationId: searchMemory
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope_SearchData_'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '403':
          description: Authenticated but not permitted for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit or quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
components:
  schemas:
    SearchInput:
      properties:
        app_id:
          type: string
          title: App Id
          default: default
        project_id:
          type: string
          title: Project Id
          default: default
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Id
        query:
          type: string
          minLength: 1
          title: Query
        method:
          type: string
          enum:
            - keyword
            - vector
            - hybrid
            - agentic
          title: Method
          default: hybrid
        top_k:
          type: integer
          title: Top K
          default: -1
        radius:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Radius
        min_score:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Min Score
        include_profile:
          type: boolean
          title: Include Profile
          default: false
        enable_llm_rerank:
          type: boolean
          title: Enable Llm Rerank
          default: false
        filters:
          anyOf:
            - $ref: '#/components/schemas/FilterNode'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - query
      title: SearchInput
      example:
        query: outdoor hobbies
        method: hybrid
        top_k: 10
        include_profile: true
    SuccessEnvelope_SearchData_:
      properties:
        request_id:
          type: string
          title: Request Id
          description: Request trace id (peer to data)
        data:
          $ref: '#/components/schemas/SearchData'
          description: Endpoint-defined business result
      type: object
      required:
        - request_id
        - data
      title: SuccessEnvelope[SearchData]
    GatewayError:
      type: object
      additionalProperties: true
      description: >-
        Gateway error body. NOTE: shape is not yet uniform across auth/quota/
        rate-limit paths — treat fields as best-effort. Commonly includes a
        `code`/`message` (flat) or an `error` object/string with a `message`.
      title: GatewayError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FilterNode:
      properties:
        AND:
          anyOf:
            - items:
                $ref: '#/components/schemas/FilterNode'
              type: array
            - type: 'null'
          title: And
        OR:
          anyOf:
            - items:
                $ref: '#/components/schemas/FilterNode'
              type: array
            - type: 'null'
          title: Or
      additionalProperties: true
      type: object
      title: FilterNode
      description: |-
        One Filters DSL node — recursive ``AND`` / ``OR`` arrays plus arbitrary
        scalar field conditions at the same level.
    SearchData:
      properties:
        episodes:
          items:
            $ref: '#/components/schemas/SearchEpisodeItem'
          type: array
          title: Episodes
        profiles:
          items:
            $ref: '#/components/schemas/SearchProfileItem'
          type: array
          title: Profiles
        agent_cases:
          items:
            $ref: '#/components/schemas/SearchAgentCaseItem'
          type: array
          title: Agent Cases
        agent_skills:
          items:
            $ref: '#/components/schemas/SearchAgentSkillItem'
          type: array
          title: Agent Skills
        unprocessed_messages:
          items:
            $ref: '#/components/schemas/UnprocessedMessageDTO'
          type: array
          title: Unprocessed Messages
      type: object
      title: SearchData
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SearchEpisodeItem:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          title: App Id
        project_id:
          type: string
          title: Project Id
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        sender_ids:
          items:
            type: string
          type: array
          title: Sender Ids
        summary:
          type: string
          title: Summary
        subject:
          type: string
          title: Subject
        episode:
          type: string
          title: Episode
        type:
          type: string
          title: Type
        atomic_facts:
          items:
            $ref: '#/components/schemas/SearchAtomicFactItem'
          type: array
          title: Atomic Facts
        score:
          type: number
          title: Score
      type: object
      required:
        - id
        - app_id
        - project_id
        - timestamp
        - summary
        - subject
        - episode
        - type
        - score
      title: SearchEpisodeItem
    SearchProfileItem:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          title: App Id
        project_id:
          type: string
          title: Project Id
        user_id:
          type: string
          title: User Id
        profile_data:
          additionalProperties: true
          type: object
          title: Profile Data
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
      type: object
      required:
        - id
        - app_id
        - project_id
        - user_id
      title: SearchProfileItem
    SearchAgentCaseItem:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          title: App Id
        project_id:
          type: string
          title: Project Id
        agent_id:
          type: string
          title: Agent Id
        session_id:
          type: string
          title: Session Id
        task_intent:
          type: string
          title: Task Intent
        approach:
          type: string
          title: Approach
        quality_score:
          type: number
          title: Quality Score
        key_insight:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Insight
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        score:
          type: number
          title: Score
      type: object
      required:
        - id
        - app_id
        - project_id
        - agent_id
        - session_id
        - task_intent
        - approach
        - quality_score
        - timestamp
        - score
      title: SearchAgentCaseItem
    SearchAgentSkillItem:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          title: App Id
        project_id:
          type: string
          title: Project Id
        agent_id:
          type: string
          title: Agent Id
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        content:
          type: string
          title: Content
        confidence:
          type: number
          title: Confidence
        maturity_score:
          type: number
          title: Maturity Score
        source_case_ids:
          items:
            type: string
          type: array
          title: Source Case Ids
        score:
          type: number
          title: Score
      type: object
      required:
        - id
        - app_id
        - project_id
        - agent_id
        - name
        - description
        - content
        - confidence
        - maturity_score
        - score
      title: SearchAgentSkillItem
    UnprocessedMessageDTO:
      properties:
        id:
          type: string
          title: Id
        app_id:
          type: string
          title: App Id
        project_id:
          type: string
          title: Project Id
        session_id:
          type: string
          title: Session Id
        sender_id:
          type: string
          title: Sender Id
        sender_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Name
        role:
          type: string
          enum:
            - user
            - assistant
            - tool
          title: Role
        content:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/ContentItem'
              type: array
          title: Content
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        tool_calls:
          anyOf:
            - items:
                $ref: '#/components/schemas/ToolCall'
              type: array
            - type: 'null'
          title: Tool Calls
        tool_call_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Tool Call Id
      type: object
      required:
        - id
        - app_id
        - project_id
        - session_id
        - sender_id
        - role
        - content
        - timestamp
      title: UnprocessedMessageDTO
      description: >-
        Buffered raw message not yet extracted (no owner — inference happens
        after

        boundary detection). Returned by /search only when
        ``filters.session_id`` is a

        top-level eq scalar (spec §4 / appendix E).
    SearchAtomicFactItem:
      properties:
        id:
          type: string
          title: Id
        content:
          type: string
          title: Content
        score:
          type: number
          title: Score
      type: object
      required:
        - id
        - content
        - score
      title: SearchAtomicFactItem
    ContentItem:
      properties:
        type:
          type: string
          enum:
            - text
            - audio
            - image
            - doc
            - pdf
            - html
            - email
          title: Type
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        base64:
          anyOf:
            - type: string
            - type: 'null'
          title: Base64
        uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Uri
        ext:
          anyOf:
            - type: string
            - type: 'null'
          title: Ext
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        source_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Source Info
        extras:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Extras
      type: object
      required:
        - type
      title: ContentItem
      description: >-
        A single content element (appendix A). Current phase: only
        ``type="text"``.
    ToolCall:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          title: Type
          default: function
        function:
          $ref: '#/components/schemas/ToolCallFunction'
      type: object
      required:
        - id
        - function
      title: ToolCall
    ToolCallFunction:
      properties:
        name:
          type: string
          title: Name
        arguments:
          type: string
          title: Arguments
      type: object
      required:
        - name
        - arguments
      title: ToolCallFunction
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key issued by EverOS, sent as `Authorization: Bearer <api_key>`.'

````