/v1/agent/{id}/cancelCancel Agent ResponseRequests cancellation of response {id}. Acts on durable state, so it works for background runs that outlive the client connection. Cancellation is asynchronous: a 200 acknowledges the request (status: cancelling) and the run stops shortly after - poll GET /v1/agent/{id} for its terminal status. Cancelling a run that is already terminal returns 400. Ownership is enforced server side; a cross-tenant or unknown id surfaces as 404.
Parameters
idstringpathrequiredResponse id (`resp_<...>`)
Responses
response_idstringrequiredThe response id (`resp_<...>`).
statusstringrequiredAlways `cancelling` - the cancel was accepted and the run stops asynchronously. An already-terminal run returns `400` instead, so no terminal status appears here.
{
"response_id": "string",
"status": "cancelling"
}errorobjectError information returned when a request fails
Show child attributes
codestringError code
messagestringrequiredHuman-readable error message
typestringError type category
{
"error": {
"code": "string",
"message": "string",
"type": "string"
}
}Error information returned when a request fails
{
"error": {
"code": "string",
"message": "string",
"type": "string"
}
}