Deskhero Developer Hub
Back to deskhero.com
Search

Search

Runs the global search behind the search box: tickets, knowledge base articles and list entries are searched in parallel and enriched with semantically similar records plus matching Users, groups and lists, where the ticket, article and similar-item sections are capped at ten rows each and the additional_ counts report how many more matched. A blank query gives an empty result while anything shorter than three characters is rejected, a query shaped like #1234 is treated as a lookup of that record id, and the response carries a key plus gpt_applicable that say whether an AI answer is being produced in the background and under which key it can be collected.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/search/search
Authorisation
Minimum role: USER

Request arguments

Name Type Source
inputDTO_search_inputQuery
Request body example

Response

Status
200 (OK)
Type
DTO_search_response_wrapper
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_search_input
NameTypeReadOnlyDescription
id_searchInt32 (nullable)Id search
debug_vector_match_thresholdDoubleDebug vector match threshold
debug_max_estimated_tokensInt32Debug max estimated tokens
debug_similarity_rejection_thresholdDoubleDebug similarity rejection threshold
sort_by_keyStringSort by key
response_field_keysString[]Response field keys
filtersString[]Filters
include_aggregationsBooleanInclude aggregations
include_importedBooleanInclude imported
searchStringSearch
sort_orderENUM sort_orderSort order
takeInt32Take
pageInt32Page
DTO_search_response_wrapper
NameTypeReadOnlyDescription
listsDTO_search_response[]Lists
ticketsDTO_search_response[]Tickets
kbsDTO_search_response[]Kbs
groupsDTO_search_response[]Groups
usersDTO_search_response[]Users
more_like_thisDTO_search_response[]More like this
keyStringKey
statusENUM search_statusStatus
gpt_applicableBooleanGpt applicable
additional_lists_matchingInt32Additional lists matching
additional_tickets_matchingInt32Additional tickets matching
additional_kbs_matchingInt32Additional kbs matching
error_messageStringError message
debugDTO_search_debug_responseDebug
DTO_search_response
NameTypeReadOnlyDescription
sys_statusDTO_referenceSys status
categoryDTO_referenceCategory
groupDTO_referenceGroup
idInt32Id
titleStringTitle
highlightStringHighlight
additional_infoStringAdditional info
entityENUM entityReadOnlyEntity
scoreDoubleReadOnlyScore
score_weightedDoubleReadOnlyScore weighted
external_linkStringReadOnlyExternal link
createdDateTimeCreated
bodyStringStore the full text of the entity in plain text.
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_search_debug_response
NameTypeReadOnlyDescription
took_explainedDTO_took[]Took explained
error_messageStringError message
chat_messagesString[]Chat messages
tokens_count_estimatedInt32Tokens count estimated
key_phrasesString[]Key phrases
debug_messagesString[]Debug messages
DTO_took
NameTypeReadOnlyDescription
itemStringItem
took_msInt64Took ms
ENUM entity
ValueNameDescription
0UNKNOWNUNKNOWN
1LISTLIST
2GROUPGROUP
3USERUSER
4LIST_ENTRYLIST_ENTRY
5TICKETTICKET
6SEARCHSEARCH
7INVOICEINVOICE
8KNOWLEDGE_BASEKNOWLEDGE_BASE
9SCRAPED_ITEMSCRAPED_ITEM
10FIELDFIELD
11TICKET_CONVERSATIONTICKET_CONVERSATION
12EXPORTEXPORT
13EXTERNAL_PRODUCTEXTERNAL_PRODUCT
14TEMPLATETEMPLATE
15PROFILE_APIPROFILE_API
16FAQFAQ
ENUM sort_order
ValueNameDescription
0ASCASC
1DESCDESC
ENUM search_status
ValueNameDescription
0UNKNOWNUNKNOWN
1INVALIDInvalid
2NOT_APPLICABLENot applicable
3IN_PROGRESSIn progress
4COMPLETEDCompleted
5OTHER_SEARCH_IN_PROGRESSAnother search in progress
6NO_DATANo data
7NO_ACTIVE_SEARCHNo active search
8TIMED_OUTTimed out

Generated Aug 4, 2026 18:37