POST
/
workflows
/
executeSync
Execute a workflow synchronously
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/executeSync \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "<string>",
  "loginId": "<string>",
  "params": {
    "origin": "New York",
    "destination": "Los Angeles"
  },
  "name": "User batch execution",
  "timeout": 1800,
  "useProxy": false,
  "startBlockId": "1",
  "batchId": "batch_123",
  "isTest": false
}'
{
  "execution": {
    "id": "<string>",
    "workflow": {
      "id": "<string>",
      "name": "<string>"
    },
    "batch": {
      "id": "<string>",
      "name": "<string>"
    },
    "logins": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ],
    "authentications": [
      {
        "browserSessionId": "<string>",
        "status": "<string>",
        "liveViewUrl": "<string>"
      }
    ],
    "startTime": "2023-11-07T05:31:56Z",
    "params": {},
    "metadata": {},
    "name": "<string>",
    "startBlock": {
      "id": "<string>",
      "name": "<string>",
      "blockReferenceId": "<string>",
      "transformerFn": "<string>",
      "type": "<string>",
      "locator": {
        "role": "<string>",
        "text": "<string>",
        "label": "<string>",
        "placeholder": "<string>",
        "altText": "<string>",
        "title": "<string>",
        "css": "<string>",
        "xpath": "<string>"
      },
      "isCacheable": true,
      "skipIfNotPresent": true,
      "data": {
        "loginId": "<string>",
        "isParameter": true
      },
      "parentRelationship": {
        "blockDepth": 123,
        "positionInSequence": 123,
        "parentBlockId": "<string>",
        "parentSequenceId": "sequence"
      }
    },
    "downloads": {
      "status": "pending",
      "files": [
        {
          "id": "<string>",
          "name": "<string>",
          "mimeType": "<string>",
          "sizeBytes": 123,
          "downloadUrl": "<string>",
          "key": "<string>"
        }
      ],
      "message": "<string>"
    },
    "contextAuthentications": [
      {
        "contextAuthenticationId": "<string>",
        "loginSummary": {
          "loginId": "<string>",
          "name": "<string>",
          "isManual": true
        },
        "authenticationStatus": "Unauthenticated"
      }
    ],
    "parentExecutionId": "<string>",
    "status": "Completed",
    "durationMs": 123,
    "endTime": "2023-11-07T05:31:56Z",
    "response": {},
    "truncatedResponse": "<string>",
    "responseFile": {
      "id": "<string>",
      "name": "<string>",
      "mimeType": "<string>",
      "sizeBytes": 123,
      "downloadUrl": "<string>",
      "key": "<string>"
    },
    "browserSessionId": "<string>",
    "context": {}
  }
}

Body

application/json
workflowId
string
required

ID of the workflow to execute

params
object
required

Runtime parameters for the workflow execution

Example:
{
"origin": "New York",
"destination": "Los Angeles"
}
loginId
string

ID of the login to use for authentication

name

Optional name for the execution (string or number, automatically converted to string)

Examples:

"User batch execution"

12345

"Execution-001"

timeout
integer

Optional timeout in seconds for the execution (defaults to 1800 seconds / 15 minutes)

Required range: x > 0
Example:

1800

useProxy
boolean
default:false

Whether to use a proxy for this execution

startBlockId
string

Optional ID of the block to start execution from

Example:

"1"

batchId
string

Optional ID of the execution batch to assign this execution to

Example:

"batch_123"

isTest
boolean
default:false

Whether this execution is a test run

Response

Workflow execution completed successfully

Synchronous workflow execution result with finished execution data

execution
object
required

Recording of a workflow execution