Get chatbot query status

GET

Get the status of an asynchronous chatbot query. If the query status is COMPLETE, this request also returns the query response.

Path parameters

query_idstringRequired

The unique identifier of the query. This value is returned by a Run query request.

Headers

IB-ContextstringOptional

Specify whether to use your community account or organization account to complete the request. To use your community account, define as your user ID. To use your organization account, define as your organization ID. If unspecified, defaults to community account context. See Authorization and context identification for details.

Response

This endpoint returns an object.
query_idstring

The unique identifier of the query.

statusenum
Allowed values: RUNNINGCOMPLETEFAILED

Status of the query.

resultslist of objectsOptional

The query response. Returned only if the query status is COMPLETE.

errorstringOptional

Present only if the status is FAILED. Contains a message with information about the source of the execution error, such as "message":"Invalid query uuid passed".