Skip to Content
API referenceWorkflows

Create Workflow

POST
/api/v1/ai-workflows

Create a new workflow.

Required scope: workflows:write

Authorization

headerAuthorizationBearer <luso8_sk_live_<40 characters>>

A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.

Request Body

application/json
  1. body
name*Name
description?string|null
icon?string|null
color?string|null
category?string|null
tags?array<string>|null
trigger_type?WorkflowTriggerType
Default"manual"
Value in"manual""scheduled""webhook""event""connector""api"
trigger_config?|null
input_schema?|null
variables?|null
max_retries?Max Retries
Default2
timeout_seconds?Timeout Seconds
Default3600
steps?array<>|null
owner_user_id?string|null

Response Body

Successful Response

application/json
  1. response
name*Name
description?string|null
icon?string|null
color?string|null
category?string|null
tags?array<string>|null
trigger_type?WorkflowTriggerType
Default"manual"
Value in"manual""scheduled""webhook""event""connector""api"
trigger_config?|null
input_schema?|null
variables?|null
max_retries?Max Retries
Default2
timeout_seconds?Timeout Seconds
Default3600
id*Id
organization_id*Organization Id
created_by*Created By
status?WorkflowStatus
Default"draft"
Value in"draft""active""paused""archived"
is_template?Is Template
Defaultfalse
is_public?Is Public
Defaultfalse
total_runs?Total Runs
Default0
successful_runs?Successful Runs
Default0
failed_runs?Failed Runs
Default0
avg_duration_seconds?number|null
version?Version
Default1
created_at*Created At
Formatdate-time
updated_at?|null
last_run_at?|null
Example Request
curl -X POST 'https://api.luso8.rexplore.ai/api/v1/ai-workflows' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "name": "string",  "description": "string",  "icon": "string",  "color": "string",  "category": "string",  "tags": [    "string"  ],  "trigger_type": "manual",  "trigger_config": {},  "input_schema": {},  "variables": {},  "max_retries": 2,  "timeout_seconds": 3600,  "id": "string",  "organization_id": "string",  "created_by": "string",  "status": "draft",  "is_template": false,  "is_public": false,  "total_runs": 0,  "successful_runs": 0,  "failed_runs": 0,  "avg_duration_seconds": 0,  "version": 1,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "last_run_at": "2019-08-24T14:15:22Z"}