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

# Search knowledge entries

> Full-text search across knowledge entries. Without agent_id, searches across all owned agents (or all agents for admins). With agent_id, searches only that agent's entries (ownership enforced for users).




## OpenAPI

````yaml /openapi.yaml get /knowledge/search
openapi: 3.0.3
info:
  title: Hill90 API
  description: Hill90 platform API — agent management and lifecycle operations.
  version: 0.1.0
servers:
  - url: /
    description: Relative (behind Traefik reverse proxy)
security: []
paths:
  /knowledge/search:
    get:
      summary: Search knowledge entries
      description: >
        Full-text search across knowledge entries. Without agent_id, searches
        across all owned agents (or all agents for admins). With agent_id,
        searches only that agent's entries (ownership enforced for users).
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: string
            minLength: 1
          description: Search query
        - name: agent_id
          in: query
          schema:
            type: string
          description: Optional agent ID to scope search
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeSearchResult'
        '400':
          description: Missing q parameter
        '401':
          description: Not authenticated
        '403':
          description: Not authorized to search this agent's knowledge
      security:
        - bearerAuth: []
components:
  schemas:
    KnowledgeSearchResult:
      type: object
      properties:
        query:
          type: string
        results:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              agent_id:
                type: string
              path:
                type: string
              title:
                type: string
              entry_type:
                type: string
              tags:
                type: array
                items:
                  type: string
              score:
                type: number
              headline:
                type: string
                description: Search result snippet with highlights
              created_at:
                type: string
                format: date-time
              updated_at:
                type: string
                format: date-time
        count:
          type: integer
        search_type:
          type: string
          example: fts
        score_type:
          type: string
          example: ts_rank
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````