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

# Extended ticket search (contacts + tickets)

> Searches contacts and tickets in parallel and returns two buckets: `sessionResults` (tickets belonging to
matching contacts, with their latest comment) and `generalResults`. Each bucket is capped at 250 tickets.

Query parameters: `searchTerm` (required), `type` (match mode: `STRICT` by default, or `BROAD`; note this
is NOT the ticket type here), `ticketType` (optional ticket type filter; by default CRASH, SURVEY and BOT
tickets are excluded), `ticketStatus` (optional status filter), `addSession` (set to `true` to include
contact data).



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /tickets/extendedsearch
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/extendedsearch:
    get:
      tags:
        - Ticket
      summary: Extended ticket search (contacts + tickets)
      description: >-
        Searches contacts and tickets in parallel and returns two buckets:
        `sessionResults` (tickets belonging to

        matching contacts, with their latest comment) and `generalResults`. Each
        bucket is capped at 250 tickets.


        Query parameters: `searchTerm` (required), `type` (match mode: `STRICT`
        by default, or `BROAD`; note this

        is NOT the ticket type here), `ticketType` (optional ticket type filter;
        by default CRASH, SURVEY and BOT

        tickets are excluded), `ticketStatus` (optional status filter),
        `addSession` (set to `true` to include

        contact data).
      operationId: SearchForTicketsExtended
      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

````