Backend API
Create a new AI workflow
cURL
curl --request POST \ --url https://api.wacht.dev/ai-workflows \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "trigger_type": "manual", "steps": [ {} ], "description": "<string>" } '
{ "id": "<string>", "name": "Customer Onboarding Workflow", "description": "<string>", "trigger_type": "webhook", "steps": [ { "id": "<string>", "name": "<string>", "type": "agent", "config": {} } ], "is_active": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
JWT Bearer token authentication using the Authorization header
manual
webhook
schedule
event
AI workflow created successfully
(i64 formatted as string)
"Customer Onboarding Workflow"
"webhook"
Show child attributes
true