Hard stop a session immediately
Stops the session immediately and schedules durable sandbox teardown. The response confirms the session stopped; sandbox cleanup may continue asynchronously and is retried. An active Evaluation or one with unfinished clone cleanup returns retryable 409 evaluation_cancellation_pending before the session is stopped; retry after Evaluation cleanup finishes. A session that already reached a terminal status with no pending cleanup is left as it is, so the call is safe to repeat.
Authorizations
Headers
Path Parameters
Response
Response body of POST /managed-agents/v1/sessions/{sessionId}/cancel. Cancel is terminal for the run but not for the record: the session is stopped and the sandbox torn down, while the session, its events, and its outcomes remain readable. The session row itself is removed from reads only by the separate soft-delete endpoint.
Response body of POST /managed-agents/v1/sessions/{sessionId}/cancel. Cancel is terminal for the run but not for the record: the session is stopped and the sandbox torn down, while the session, its events, and its outcomes remain readable. The session row itself is removed from reads only by the separate soft-delete endpoint.