Workflows

Get a single workflow execution by id (with full node trace)

GET
/api/workflows/executions/{executionId}

Returns one WorkflowExecution record including the full nodeExecutions array (node-by-node status, input/output, error, duration) and any variables set during the run. Used by the Workflows Dashboard detail panel; the list endpoint omits these fields for payload size. Non-SUPERADMIN callers are scoped to their own organization.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

executionId*string

The _id of the WorkflowExecution.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/workflows/executions/string"
{  "success": true,  "data": {    "_id": "string",    "workflowId": "string",    "workflowName": "string",    "handledError": true,    "organizationId": "string",    "triggeredBy": "message",    "triggerData": {},    "contactId": "string",    "conversationId": "string",    "messageId": "string",    "status": "pending",    "startedAt": "2019-08-24T14:15:22Z",    "completedAt": "2019-08-24T14:15:22Z",    "duration": 0,    "error": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "nodeExecutions": [      {        "nodeId": "string",        "nodeType": "string",        "nodeName": "string",        "status": "pending",        "startedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "duration": 0,        "input": {},        "output": {},        "error": "string",        "retryCount": 0,        "attempts": [          {            "status": "pending",            "startedAt": "2019-08-24T14:15:22Z",            "completedAt": "2019-08-24T14:15:22Z",            "duration": 0,            "error": "string",            "errorCode": "string",            "errorCategory": "string",            "childExecutionId": "string"          }        ],        "placeholders": [          {            "token": "string",            "value": null,            "empty": true,            "secret": true          }        ],        "visits": [          {            "status": "pending",            "startedAt": "2019-08-24T14:15:22Z",            "completedAt": "2019-08-24T14:15:22Z",            "duration": 0,            "output": {},            "outputHandle": "string",            "error": "string",            "handled": true,            "attempts": [              {                "status": "pending",                "startedAt": "2019-08-24T14:15:22Z",                "completedAt": "2019-08-24T14:15:22Z",                "duration": 0,                "error": "string",                "errorCode": "string",                "errorCategory": "string",                "childExecutionId": "string"              }            ],            "placeholders": [              {                "token": "string",                "value": null,                "empty": true,                "secret": true              }            ],            "step": 0,            "cameFrom": {              "nodeId": "string",              "edgeId": "string",              "handle": "string"            }          }        ],        "visitCount": 0,        "step": 0,        "handledEarlier": true,        "failedEarlier": true,        "arrivedEarlier": [          {            "nodeId": "string",            "edgeId": "string",            "handle": "string"          }        ],        "firstStep": 0,        "splitNodeId": "string",        "branchesInTurn": true,        "cameFrom": {          "nodeId": "string",          "edgeId": "string",          "handle": "string"        }      }    ],    "variables": {},    "workflowVersion": 0,    "workflowGraph": {}  }}