Skip to main content
POST
/
api
/
v1
/
workflows
/
{workflow_id}
/
nodes
Add Node
curl --request POST \
  --url https://api.example.com/api/v1/workflows/{workflow_id}/nodes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "position": 1,
  "node_type": "task",
  "parallel_group": 123,
  "depends_on": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "task_template": {},
  "node_config": {},
  "input_mapping": {},
  "max_retries": 1
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "position": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "node_type": "task",
  "parallel_group": 123,
  "depends_on": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "task_template": {},
  "node_config": {},
  "input_mapping": {},
  "retry_count": 0,
  "max_retries": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflow_id
string<uuid>
required

Body

application/json
position
integer
required
Required range: x >= 0
node_type
string
default:task

Node type: task | api_call | distribution | transform

parallel_group
integer | null
depends_on
string<uuid>[]
task_template
Task Template · object

Task definition template (required for task nodes, may include {{variables}})

node_config
Node Config · object

Type-specific config: api_call={provider, params}, transform={operation, params}, distribution={platform, params}

input_mapping
Input Mapping · object
max_retries
integer
default:1
Required range: 0 <= x <= 5

Response

Successful Response

id
string<uuid>
required
workflow_id
string<uuid>
required
position
integer
required
created_at
string<date-time>
required
node_type
string
default:task
parallel_group
integer | null
depends_on
string<uuid>[]
task_template
Task Template · object
node_config
Node Config · object
input_mapping
Input Mapping · object
retry_count
integer
default:0
max_retries
integer
default:1