POST
/
ai-workflows
Create AI Workflow
curl --request POST \
  --url https://api.wacht.dev/ai-workflows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "trigger_type": "manual",
  "steps": [
    {}
  ]
}'
{
  "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"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Body

application/json

Response

AI workflow created successfully

The response is of type object.