Deskhero Developer Hub
Back to deskhero.com
Search

Search gpt

Collects the AI answer that the matching search call started in the background, using the key that search returned, and holds the request open for up to two minutes while polling for it before reporting a timed-out status. The answer is composed from the knowledge the search found, and placeholders in the workspace's custom instructions are resolved before it is returned.

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

Request arguments

Name Type Source
keyStringQuery
Request body example

Response

Status
200 (OK)
Type
DTO_search_response_gpt_wrapper
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_search_response_gpt_wrapper
NameTypeReadOnlyDescription
responseStringResponse
error_messageStringError message
statusENUM search_statusStatus
debugDTO_search_gpt_debug_responseDebug
DTO_search_gpt_debug_response
NameTypeReadOnlyDescription
took_explainedDTO_took[]Took explained
error_messageStringError message
tokens_count_inputInt32Tokens count input
tokens_count_completionInt32Tokens count completion
debug_messagesString[]Debug messages
DTO_took
NameTypeReadOnlyDescription
itemStringItem
took_msInt64Took ms
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