create executeflow
POST
api.wexa.ai/execute_flow
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'api.wexa.ai/execute_flow?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: 7dd7e31a-5c0b-482f-8ac7-1fa72ac0a81a' \
--header 'Content-Type: application/json' \
--data-raw '{
"agentflow_id": "67fdea9b68df1c3e9580a549",
"executed_by": "67fdea40aac77be632954f0e",
"goal": "run",
"input_variables": {},
"projectID": "67fdea40aac77be632954f13"
}'
Response Response Example
{
"agentflow_id": "67fdea9b68df1c3e9580a549",
"files": [],
"goal": "run",
"schedule": null,
"start_from_agent_id": null,
"input_variables": {},
"task_id": "6805f401064a778a5f18f846",
"parent_execution_id": null,
"agentflow": {
"agentflow_id": "67fdea9b68df1c3e9580a549",
"agents": [
{
"_id": "67fdea9b68df1c3e9580a54a",
"llm": {
"model": "azure/gpt-4o",
"temperature": 0,
"max_tokens": 10000
},
"role": "new platform",
"role_description": "new platform",
"title": "new platform",
"agent_type": "skilled_agent",
"next_agent": null
}
],
"image": "https://klotdev.blob.core.windows.net/coworkers/wexaworker13.png",
"initialAgent": "67fdea9b68df1c3e9580a54a",
"name": "new platform",
"role": "new platform",
"conclusion": null
},
"agents_output": [],
"anomaly_detected": null,
"conclusion": null,
"created_at": 1745220609.00188,
"end_time": null,
"executed_by": {
"_id": "67fdea40aac77be632954f0e",
"metadata": null,
"name": "nani799324",
"type": "manual"
},
"execution_context": {},
"execution_id": "8ffc2a03-5d38-4321-aae8-c9f32d7707fc",
"goal_template": null,
"_id": "6805f401064a778a5f18f845",
"previews": {},
"projectID": "67fdea40aac77be632954f13",
"runtime_inputs": {},
"status": "ready"
}
Request
Query Params
projectID
stringÂ
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
stringÂ
required
Example:
7dd7e31a-5c0b-482f-8ac7-1fa72ac0a81a
Body Params application/json
Responses
Modified at 2025-04-23 12:22:20