Skip to main content
POST
/
workflows
/
executeBatch
Execute multiple workflows in a batch
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/executeBatch \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "workflow_123",
  "name": "Monthly Report Generation",
  "executions": [
    {
      "loginId": "<string>",
      "params": {
        "origin": "New York",
        "destination": "Los Angeles"
      },
      "name": "User batch execution",
      "timeout": 1800,
      "useProxy": false,
      "startBlockId": "1",
      "batchId": "batch_123",
      "isTest": false
    }
  ],
  "generateDownload": true
}'
{
  "batchId": "batch_123",
  "executionIds": [
    "<string>"
  ],
  "message": "Batch execution started successfully"
}

Body

application/json
workflowId
string
required

ID of the workflow to execute for all executions in this batch

Example:

"workflow_123"

name
string
required

Name for the execution batch

Example:

"Monthly Report Generation"

executions
object[]
required

Array of workflow execution parameters (workflowId is specified at batch level)

generateDownload
boolean

Whether to generate a zip download for this batch

Example:

true

Response

Batch execution started successfully

batchId
string
required

ID of the created execution batch

Example:

"batch_123"

executionIds
string[]
required

Array of created execution IDs

message
string
required

Success message

Example:

"Batch execution started successfully"

I