Get Bot Response

This endpoint can be used to retreive the bot response (as posted in the bot logic, using either scripting or Set HTTP Response actions).

This endpoint can be accessed repeatedly as the bot might update it's response multiple times in a single run instance. Only the last update is available.

[GET] https://localhost:65001/Status/[guid]

Request parameters

The only request parameters required for this operation is the guid of the target bot instance. For instance:

[GET] https://localhost:65001/Status/78bd048b-6847-4056-8a74-3f71b5fc1271

Request headers

accessToken - This operation requires to include the access token associated with the bot instance (obtained as a response from the Start Session Bot request. Failure to provide the correct access token will result in a 401 Unauthorized response.

Request body

This is a simple GET request that does not require a body.

Returns

The TGA should reply with a code 200 and the bot instance details, along with the output, in JSON format:

{
	"guid": "2777f2d5-dbf1-41a0-ad1a-b2c9b9388baf",
	"status": "Running",
	"path": "C:\\Tailent\\Test\\Test.tap",
	"start": "2024-10-09T05:33:16.4779509-07:00",
	"output": "\"\"Some String Response\"\""
}

guid - represents the bot instance guid, which is generated with the Start Session Bot request.

status - represents the current status of the bot; this can be Stopped or Running.

path - represents the path of the .tap automation file

start - represents the starting time of the bot instance.

output - is the serialized string form of whatever object was set as the response in the bot logic.

Example curl request

Last updated