Wexa.ai
  1. Executeflow
Wexa.ai
  • Wexa AI
  • Getting Started
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting
  • API Endpoints
    • Actions
      • create action
      • get action
    • Agentflows
      • get agent flow
      • failover agentflows
      • Get agentflow by projectId and UserId
      • Verify_quota
      • get agentflow by id
      • create agentflow
      • Add skilled agent to agentflow
      • Update skilled agent
    • Analytics
      • Get analytics
    • Customer
      • get customer
      • Get credit history
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Credits
      • Validate user validity
      • validate workspace credits
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Executeflow
      • create executeflow
        POST
      • get executions
        GET
      • pause executeflow
        POST
      • resume execution
        POST
      • get execution by execution id
        GET
      • cancel executeflow
        POST
      • verify quota
        POST
      • get execution details for monitoring
        GET
      • execute agentflow
        POST
    • Files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
      • get total file size
      • upload files
    • Inbox
      • get inbox
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Settings
      • get settings
    • Skills
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
      • create skill
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • resume task
      • Pause running task
      • Stop task
      • Get all tasks
      • get specific task graph
    • Tables
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a coulmn
    • Project member
      • project_member
    • Project
      • Get all projects
      • Get project
      • Get Projects
      • create project
      • update project
      • Delete project
  1. Executeflow

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
agentflow_id
string 
required
executed_by
string 
required
goal
string 
required
input_variables
object 
required
projectID
string 
required
Examples

Responses

🟢201create executeflow
application/json
Body
agentflow_id
string 
required
files
array
required
goal
string 
required
schedule
null 
required
start_from_agent_id
null 
required
input_variables
object 
required
task_id
string 
required
parent_execution_id
null 
required
agentflow
object 
required
agentflow_id
string 
required
agents
array [object {7}] 
required
image
string 
required
initialAgent
string 
required
name
string 
required
role
string 
required
conclusion
null 
required
agents_output
array
required
anomaly_detected
null 
required
conclusion
null 
required
created_at
number 
required
end_time
null 
required
executed_by
object 
required
_id
string 
required
metadata
null 
required
name
string 
required
type
string 
required
execution_context
object 
required
execution_id
string 
required
goal_template
null 
required
_id
string 
required
previews
object 
required
projectID
string 
required
runtime_inputs
object 
required
status
string 
required
Modified at 2025-04-23 12:22:20
Previous
delete component in dashboard
Next
get executions
Built with