execute agentflow
POST
https://api.wexa.ai/execute_flow/{execution_id}/execute
Last modified:2025-04-25 09:51:27
Execute AgentFlow by Execution ID
execution_id
. This endpoint triggers the defined sequence of AI agents (Coworkers) within the AgentFlow to perform their tasks based on the provided goal and input variables. It's essential for automating workflows and ensuring that the AI agents operate in alignment with your organization's objectives.Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.wexa.ai/execute_flow//execute?projectID={{projectID}}&execution_id=8ffc2a03-5d38-4321-aae8-c9f32d7707fc' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectID":"67fdea40aac77be632954f13",
"execution_id":"19966a1f-7a22-4da3-8473-7f638c6ba518"
}'
Response Response Example
{
"execution_id": "19966a1f-7a22-4da3-8473-7f638c6ba518",
"status": "ready"
}
Request
Path Params
execution_id
string
required
Query Params
projectID
string
required
Example:
{{projectID}}
execution_id
string
optional
Example:
8ffc2a03-5d38-4321-aae8-c9f32d7707fc
Header Params
x-api-key
string
required
Example:
{{x-api-key}}
Body Params application/json
Responses
Modified at 2025-04-25 09:51:27