list
const url = 'https://enclave.subnoto.com/public/agent-task/list';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"stateFilter":["working"],"page":1,"limit":50,"sortOrder":"asc"}'};
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/list \ --header 'Content-Type: application/json' \ --data '{ "stateFilter": [ "working" ], "page": 1, "limit": 50, "sortOrder": "asc" }'List agent tasks for the team. Each entry represents one taskUuid with its latest report.
Request Body required
Section titled “Request Body required ”object
Filter tasks whose latest report is in one of the given states. Omit or empty to return all.
The page number (1-indexed). Defaults to 1.
The number of tasks per page. Defaults to 50, maximum is 50.
Sort tasks by the latest report timestamp. Defaults to ‘desc’.
Responses
Section titled “ Responses ”Default Response
object
object
The task grouping UUID.
Number of reports recorded for this task.
object
The latest reported state.
The latest reported summary.
Optional resource link from the latest report.
The timestamp of the latest report (unix ms).
object
Author public UUID (nil UUID for System).
Author email address.
Author display name.
object
The total number of items matching the filters.
The page number that was requested (1-indexed).
The total number of pages. Equals ceil(totalRecords / limit), or 1 when totalRecords is 0.
Example
{ "tasks": [ { "latestReport": { "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": "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" }}