v1
latestOpenAPI 3.1.02026-07-26142186376.1 KBAgents
Cancel Agent Run
Cancel a currently executing agent run. This will attempt to stop the agent's execution gracefully.
Note: Cancellation may not be immediate for all operations.
post/agents/{agent_id}/runs/{run_id}/cancel
Path parameters
agent_idstring required
run_idstring required
Query parameters
session_idstring nullable
Session ID the run belongs to. Required for non-admin JWT users.
Session ID the run belongs to. Required for non-admin JWT users.
Response
Successful Response
{"stackTrail":"paths:/agents/{agent_id}/runs/{run_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}