report
const url = 'https://enclave.subnoto.com/public/agent-task/report';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"taskUuid":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","summary":"example","state":"working","link":"https://example.com"}'};
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/report \ --header 'Content-Type: application/json' \ --data '{ "taskUuid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "summary": "example", "state": "working", "link": "https://example.com" }'Report agent task progress. Reuse the same taskUuid across calls to build a single task’s history. Use state=‘working’ for in-progress updates and ‘complete’, ‘failure’, or ‘idle’ to signal an end state.
Request Body required
Section titled “Request Body required ”object
Client-generated UUID that groups multiple reports into a single task. Reuse this UUID to append updates to the same task.
One-line status description of what the agent is doing now (160 characters maximum, no newlines).
Current task state. Use ‘working’ for in-progress, ‘complete’ when finished, ‘failure’ when you need user input or have hit a blocker, ‘idle’ when nothing is in progress.
Optional URL pointing to a relevant resource (PR, issue, artifact, log). Must be http(s).
Responses
Section titled “ Responses ”Default Response
object
The numeric ID of the stored report row.
The unix timestamp (ms) recorded on the report.
Example generated
{ "reportId": 1, "timestamp": 1}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" }}