---
title: "Extended ticket search (contacts + tickets)"
url: https://docs.gleap.ai/en/reference/rest-api/search-for-tickets-extended
method: GET
path: "/tickets/extendedsearch"
api: "API Reference"
tag: "Ticket"
operationId: "SearchForTicketsExtended"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Extended ticket search (contacts + tickets)

`GET https://api.gleap.io/v3/tickets/extendedsearch`

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), `sort` (optional: `newest` or `oldest` orders both buckets by creation date; best match first by default), `addSession` (set to `true` to include contact data).

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Headers

- `project` (string, required)

## Example request

```bash
curl --request GET \
  --url https://api.gleap.io/v3/tickets/extendedsearch \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
