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"
  },
  "timeout": 1800,
  "useProxy": false,
  "startBlockId": "1"
}'
{
  "execution": {
    "id": "<string>",
    "workflow": {
      "id": "<string>",
      "name": "<string>"
    },
    "logins": [
      {
        "id": "<string>",
        "name": "<string>"
      }
    ],
    "authentications": [
      {
        "browserSessionId": "<string>",
        "status": "<string>",
        "liveViewUrl": "<string>"
      }
    ],
    "startTime": "2023-11-07T05:31:56Z",
    "params": {},
    "startBlock": {
      "id": "<string>",
      "name": "<string>",
      "transformerFn": "<string>",
      "type": "<string>",
      "locator": {
        "role": "<string>",
        "text": "<string>",
        "label": "<string>",
        "placeholder": "<string>",
        "altText": "<string>",
        "title": "<string>",
        "css": "<string>",
        "xpath": "<string>"
      },
      "isCacheable": false,
      "skipIfNotPresent": false,
      "data": {},
      "parentRelationship": {
        "blockDepth": 123,
        "positionInSequence": 123,
        "parentBlockId": "<string>",
        "parentSequenceId": "sequence"
      }
    },
    "status": "Completed",
    "durationMs": 123,
    "endTime": "2023-11-07T05:31:56Z",
    "response": {},
    "truncatedResponse": "<string>",
    "browserSessionId": "<string>",
    "context": {}
  }
}

Body

application/json

Response

200
application/json

Workflow execution completed successfully

Synchronous workflow execution result with finished execution data