get
const url = 'https://enclave.subnoto.com/public/agent-task/get';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"taskUuid":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://enclave.subnoto.com/public/agent-task/get \ --header 'Content-Type: application/json' \ --data '{ "taskUuid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Get the full history of reports for a single agent task, ordered from oldest to newest. Capped at 100 reports per call.
Request Body required
Section titled “Request Body required ”object
The task UUID whose history should be returned.
Example generated
{ "taskUuid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Default Response
object
object
Unique numeric ID of the report row.
The reported state.
The report summary.
Optional resource link.
The report timestamp (unix ms).
object
Author public UUID (nil UUID for System).
Author email address.
Author display name.
Example
{ "reports": [ { "state": "working" } ]}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "AGENT_TASK_NOT_FOUND" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "AUTHENTICATION_ERROR" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "AUTHORIZATION_ERROR" }}Default Response
object
HTTP status code
object
The error code
The error message
A suggestion to resolve the error
A URL to the documentation
Optional validation details (e.g. for INVALID_REQUEST_FORMAT)
Single validation issue (e.g. from request body schema)
object
JSON path to the invalid field
Validation error message for this field
The unique identifier of the request
The timestamp of the response
The path of the request
Example
{ "error": { "code": "INTERNAL_SERVER_ERROR" }}