execution_id
. This endpoint allows you to halt the execution of an AgentFlow that is currently in progress, ensuring that workflows can be stopped promptly in response to changing requirements or unforeseen issues. Once canceled, the execution cannot be resumed and must be restarted if needed.curl --location -g --request POST 'https://api.wexa.ai/execute_flow/?projectID={{projectID}}' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectID":"67fdea40aac77be632954f13",
"execution_id":"aa91804f-3f6c-4622-a99f-c2ca7a6f8782"
}'
{
"execution_id": "aa91804f-3f6c-4622-a99f-c2ca7a6f8782",
"status": "cancelled"
}