cURL
curl --request POST \ --url https://control-plane.kubiya.ai/api/v1/workflows \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "steps": [ "<unknown>" ], "configuration": {}, "team_id": "<string>" } '
{ "id": "<string>", "name": "<string>", "description": "<string>", "status": "pending", "steps": [ "<unknown>" ], "current_step": "<string>", "configuration": {}, "team_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "started_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z", "state": {}, "error_message": "<string>" }
Create a new workflow
Workflow name
Workflow description
Workflow steps
Workflow configuration
Team ID
Successful Response
Workflow status enumeration
pending
running
paused
completed
failed
cancelled
Was this page helpful?