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

# Search Agent Memory

> Search through an agent's memory using keywords and filters



## OpenAPI

````yaml /api-reference/openapi.json post /v1/bot/search
openapi: 3.0.0
info:
  title: BoostGPT API
  version: 1.0.0
  description: API for managing AI agents with memory capabilities
servers:
  - url: https://api.boostgpt.co
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Agent
    description: Operations for managing AI agents
  - name: Memory
    description: Operations for managing agent memory sources
  - name: Chat
    description: Operations for chatting with agents and managing conversations
  - name: Subscribers
    description: Operations for managing subscribers and leads
  - name: Tools
    description: Operations for managing agent tools and MCP server integrations
  - name: Analytics
    description: Operations for retrieving agent statistics and analytics
  - name: Heartbeat
    description: Operations for managing autonomous agent scheduling and execution
  - name: User Memory
    description: Operations for managing per-user memory entries
  - name: Email
    description: Operations for managing agent email functionality
  - name: Triggers
    description: Operations for firing proactive agent trigger events
  - name: CRM
    description: >-
      Operations for managing agent CRM contacts, pipelines, deals, follow-ups,
      and reports
  - name: Workflows
    description: Operations for managing agent workflow automations
  - name: Calendar
    description: Operations for managing agent calendar settings, availability, and events
  - name: Workspace
    description: Operations for managing agent workspaces and files
paths:
  /v1/bot/search:
    post:
      tags:
        - Memory
      summary: Search Agent Memory
      description: Search through an agent's memory using keywords and filters
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchMemoryRequest'
      responses:
        '200':
          description: Search results retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchMemoryResponse'
components:
  schemas:
    SearchMemoryRequest:
      type: object
      required:
        - project_id
        - bot_id
        - keywords
      properties:
        project_id:
          type: string
          description: Project ID
        bot_id:
          type: string
          description: Agent ID
        keywords:
          type: string
          description: Search keywords
        source_ids:
          type: array
          items:
            type: string
          description: Filter by specific memory source IDs
        tags:
          type: array
          items:
            type: string
          description: Filter by tags
        top:
          type: integer
          description: Number of top results to return
          default: 5
    SearchMemoryResponse:
      type: object
      properties:
        results:
          type: object
          description: Search results containing context and sources
          properties:
            context:
              type: string
              description: Aggregated context from all matching sources
            sources:
              type: array
              description: List of source documents that matched the search
              items:
                type: object
                properties:
                  source_id:
                    type: string
                    description: Memory source ID
                  favicon:
                    type: string
                    description: Favicon URL for the source
                  title:
                    type: string
                    description: Title of the source page
                  url:
                    type: string
                    description: URL of the source page
                  tags:
                    type: array
                    items:
                      type: string
                    description: Tags associated with the source
            confidence_score:
              type: number
              description: Overall confidence score for the search results
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key

````