> ## 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 messages in a thread



## OpenAPI

````yaml /openapi.yaml get /chat/threads/{id}/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:
  /chat/threads/{id}/search:
    get:
      summary: Search messages in a thread
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: q
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Matching messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        seq:
                          type: integer
                        author_id:
                          type: string
                        author_type:
                          type: string
                          enum:
                            - human
                            - agent
                        content:
                          type: string
                        headline:
                          type: string
                          description: FTS headline with **highlights**
                        created_at:
                          type: string
                          format: date-time
                  query:
                    type: string
                  total:
                    type: integer
        '400':
          description: Missing q parameter
        '404':
          description: Thread not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````