curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/cancel_workflow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workflow_message_id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Cancel a specific workflow tool call within an execution.
This cancels only the workflow, allowing the agent to continue running and respond to the user about the cancellation. This is different from /cancel which stops the entire execution.
Args: execution_id: The agent execution ID workflow_message_id: The unique workflow message ID to cancel
curl --request POST \
--url https://control-plane.kubiya.ai/api/v1/executions/{execution_id}/cancel_workflow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workflow_message_id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?