Skip to main content
POST
/
workflows
/
{workflowId}
/
steps
Add step
curl --request POST \
  --url https://script.so/api/v1/workflows/{workflowId}/steps \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Save the summary to Google Sheets",
  "position": 3
}
'
{
  "id": "step_1",
  "description": "Fetch all orders from Shopify created in the last 24 hours",
  "status": "pending",
  "position": 1,
  "inputs": [
    "orders"
  ],
  "outputs": [
    "summary"
  ]
}

Authorizations

Authorization
string
header
required

API key authentication. Get your key from Settings → API Keys.

Use sk_live_ prefix for production, sk_test_ for development.

Path Parameters

workflowId
string
required

Workflow ID

Example:

"wf_xyz789"

Body

application/json
description
string
required

Natural language description

position
integer

Insert position (default is append to end)

Response

Step created

id
string
Example:

"step_1"

description
string
Example:

"Fetch all orders from Shopify created in the last 24 hours"

status
enum<string>
Available options:
pending,
building,
ready,
error
position
integer
Example:

1

inputs
string[]
Example:
["orders"]
outputs
string[]
Example:
["summary"]