create agentflow
POST
https://api.wexa.ai/agentflow/
Last modified:2025-04-25 08:48:44
Create AgentFlow
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wexa.ai/agentflow/?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "content creator testing",
"description": "content creator testing",
"role": "content creator testing",
"projectID": "67fdea40aac77be632954f13"
}'
Response Response Example
{
"_id": "68075a61ff5c4953f0170a10",
"name": "content creator testing",
"description": "content creator testing",
"role": "content creator testing",
"projectID": "67fdea40aac77be632954f13",
"image": "https://klotdev.blob.core.windows.net/coworkers/process-flow-wexa-10.png",
"agentflow_type": "master",
"parent_agentflow_id": null,
"failover_goal": null,
"created_at": 1745312352.995075,
"updated_at": 1745312352.995084,
"last_used": 1745312352.995086,
"isActive": true,
"is_deleted": false,
"default_goal": "",
"is_cron_scheduled": false,
"organization_id": "67fdea40aac77be632954f0f",
"cron_details": {
"agentflow_id": "",
"goal": {
"template": "",
"display_template": ""
},
"collection_name": null,
"query": {},
"projectID": "",
"frequency": "",
"limit": null,
"query_limit": null,
"executed_by": null,
"filters": null,
"count": null
},
"anomaly_detection": {
"is_enabled": false,
"instructions": ""
},
"agents": []
}
Request
Query Params
projectID
string
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
string
required
Example:
{{x-api-key}}
Body Params application/json
Responses
Modified at 2025-04-25 08:48:44