Agents

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

Request

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.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.