Skip to main content
POST
/
workflows
Create workflow
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/workflows \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "workflow_name": "HS Classification",
  "workflow_ref_name": "hs_classification",
  "script": "def run(input): return input",
  "application_id": 42,
  "transform_enabled": true,
  "transform_session": "def transform_session(session): return session"
}
'
{
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Body

application/json
workflow_name
string
required
workflow_ref_name
string
required
script
string
required
application_id
integer
required
description
string
timeout_seconds
integer
transform_enabled
boolean
transform_session
string
input_schema
object
output_schema
object

Response

200 - application/json

Create workflow.

data
any