Skip to navigation

Cancel Workflow

View as MarkdownOpen in Claude

Cancels a running workflow using Temporal’s native cancellation API. This triggers on_cancel handlers if defined.

Request

This endpoint expects a multipart form.
workflow_idstringRequired
Workflow ID
run_idstringOptional

Run ID (optional, cancels current run if omitted)

reasonstringOptional
Reason for cancellation

Response

OK

Errors

400
Bad Request Error
500
Internal Server Error