approvalInstanceId: Where to find it?

To find approvalInstanceId via API call, use the following steps:

  1. We use the Fetch Execution Details to get the approval stage nodeUuid: pipelineExecutionSummary → layoutNodeMap → Your Approval node

  2. Use the nodeUuid for next Fetch Execution Details call as stageNodeId

In the response, we go to executionGraph → nodeMap → approval → executableResponses

There we will find the callbackId that corresponds to our approvalInstanceId