Skip to main content
POST
/
workflows
/
{workflowId}
/
run
Run workflow
curl --request POST \
  --url https://script.so/api/v1/workflows/{workflowId}/run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": {
    "date_range": "last_7_days",
    "min_order_value": 100
  }
}
'
{
  "execution_id": "exec_abc123",
  "workflow_id": "wf_xyz789",
  "status": "running",
  "started_at": "2023-11-07T05:31:56Z"
}

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
inputs
object

Input values for parameterized workflows

Response

Execution started

execution_id
string
Example:

"exec_abc123"

workflow_id
string
Example:

"wf_xyz789"

status
string
Example:

"running"

started_at
string<date-time>