---
title: "Search for tickets"
url: https://docs.gleap.ai/en/reference/rest-api/search-for-tickets
method: GET
path: "/tickets/search"
api: "API Reference"
tag: "Ticket"
operationId: "SearchForTickets"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Search for tickets

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

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).

## Authorization

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

## Headers

- `project` (string, required)

## Example request

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

## Responses

### 200 (`application/json`)

Ok
