Security.RunDevelopers
v1 PreviewOpenAPI ↗
API & MCP reference/Cancel a tool run
HTTP REFERENCE

Cancel a tool run

Cancel execution, preserve partial output and verify teardown.

POST/v1/tool-runs/{run_id}/cancel

Stop a run you no longer need

Send POST with a new cancellation key, then retrieve the run until it reaches a terminal state.

What to do next

Check cleanup_status and keep any useful partial output.

Read the step-by-step guide →

Send an Idempotency-Key. Keep the same key and body when retrying this operation.

Parameter and response reference

Parameters

run_idpath · stringrequired
authorizationheader · string | nullrequired
idempotency-keyheader · string | nullrequired

Responses

  • 200 Successful Response
  • 422 Validation Error
Search documentation, capabilities and native tools.

Copy this page

Your browser couldn’t copy automatically. Copy the selected Markdown below.