cancel executeflow
POST
https://api.wexa.ai/execute_flow/{execution_id}
Last modified:2025-04-25 09:45:38
Cancel Execution Flow
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.Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Response Response Example
{
"execution_id": "aa91804f-3f6c-4622-a99f-c2ca7a6f8782",
"status": "cancelled"
}
Request
Path Params
execution_id
string
required
Query Params
projectID
string
required
Example:
{{projectID}}
Header Params
x-api-key
string
required
Example:
{{x-api-key}}
Body Params application/json
Responses
Modified at 2025-04-25 09:45:38