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

# Search for tickets

> Full-text search over the project's tickets and their comments. Returns `{ hits: [...] }` with at most
30 hits, ordered by relevance.

Query parameters: `searchTerm` (required, max 100 characters), `type` (optional ticket type filter, e.g.
`BUG`), `status` (optional status filter, e.g. `OPEN`), `archived` (optional `true`/`false`; omit to search
both), `addSession` (set to `true` to include contact data on each hit).



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /tickets/search
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/search:
    get:
      tags:
        - Ticket
      summary: Search for tickets
      description: >-
        Full-text search over the project's tickets and their comments. Returns
        `{ hits: [...] }` with at most

        30 hits, ordered by relevance.


        Query parameters: `searchTerm` (required, max 100 characters), `type`
        (optional ticket type filter, e.g.

        `BUG`), `status` (optional status filter, e.g. `OPEN`), `archived`
        (optional `true`/`false`; omit to search

        both), `addSession` (set to `true` to include contact data on each hit).
      operationId: SearchForTickets
      parameters:
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````