Skip to main content
POST
/
knowledge
/
similar-tickets
Find similar tickets
curl --request POST \
  --url https://api.gleap.io/v3/knowledge/similar-tickets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'project: <project>' \
  --data '
{
  "query": "<string>",
  "excludeTicketId": "<string>",
  "limit": 123
}
'
{
  "results": [
    {
      "ticketId": "<string>",
      "title": "<string>",
      "similarity": 123,
      "content": "<string>"
    }
  ],
  "count": 123
}

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

project
string
required

Body

application/json
query
string
required
excludeTicketId
string
limit
number<double>

Response

200 - application/json

Ok

results
object[]
required
count
number<double>
required