Get Workflow Execution Tree
curl --request GET \
--url https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"execution_tree": {
"workflow_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_label": "<string>",
"node_type": "<string>",
"input_data": {},
"output_data": {},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"attempt_count": 123,
"child_executions": [
{
"index": 123,
"workflow_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"label": "<string>",
"target_node_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"nodes": "<array>"
}
],
"total_children": 123,
"has_more_children": true
}
]
}
}Workflow Execution
Get Workflow Execution Tree
Retrieves the complete execution tree showing all nodes, their status, inputs, outputs, and child agent executions. Max recursion depth: 10.
GET
/
workflow-requests
/
{id}
/
execution-tree
Get Workflow Execution Tree
curl --request GET \
--url https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.splox.io/api/v1/workflow-requests/{id}/execution-tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"execution_tree": {
"workflow_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"nodes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_label": "<string>",
"node_type": "<string>",
"input_data": {},
"output_data": {},
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"attempt_count": 123,
"child_executions": [
{
"index": 123,
"workflow_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"label": "<string>",
"target_node_label": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"nodes": "<array>"
}
],
"total_children": 123,
"has_more_children": true
}
]
}
}Retrieves the complete execution tree showing all nodes, their status, and hierarchy.
Usage
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://app.splox.io/api/v1/workflow-requests/{workflow_request_id}/execution-tree
from splox import SploxClient
client = SploxClient(api_key="YOUR_API_KEY")
tree = client.workflows.get_execution_tree("WORKFLOW_REQUEST_ID")
print(f"Status: {tree.execution_tree.status}")
for node in tree.execution_tree.nodes:
print(f" [{node.status}] {node.node_label} ({node.node_type})")
import Splox from "splox";
const client = new Splox("YOUR_API_KEY");
const { execution_tree } = await client.workflows.getExecutionTree("WORKFLOW_REQUEST_ID");
console.log(`Status: ${execution_tree.status}`);
for (const node of execution_tree.nodes ?? []) {
console.log(` [${node.status}] ${node.node_label} (${node.node_type})`);
}
client := splox.NewClient("YOUR_API_KEY")
tree, err := client.Workflows.GetExecutionTree(ctx, "WORKFLOW_REQUEST_ID")
fmt.Printf("Status: %s\n", tree.ExecutionTree.Status)
for _, node := range tree.ExecutionTree.Nodes {
fmt.Printf(" [%s] %s (%s)\n", node.Status, node.NodeLabel, node.NodeType)
}
Response
{
"execution_tree": {
"workflow_request_id": "0199f123-d60e-7ffd-9131-4cc5ab040ee8",
"status": "completed",
"created_at": "2025-10-22T12:15:30Z",
"completed_at": "2025-10-22T12:15:47Z",
"nodes": [
{
"id": "0199f124-e70f-8gge-2242-5dd6bc151ff9",
"node_id": "0199e002-b34c-8d9e-2345-678901bcdef0",
"node_label": "Start",
"node_type": "start",
"status": "completed",
"input_data": {},
"output_data": { "user_id": "12345" },
"created_at": "2025-10-22T12:15:32Z",
"completed_at": "2025-10-22T12:15:33Z",
"failed_at": null,
"attempt_count": 1,
"child_executions": [],
"total_children": 0,
"has_more_children": false
},
{
"id": "0199f125-f81g-9hhf-3353-6ee7cd262gg0",
"node_id": "0199e003-c45d-9e0f-3456-789012cdef01",
"node_label": "Process Data",
"node_type": "agent",
"status": "completed",
"input_data": { "user_id": "12345" },
"output_data": { "result": "processed" },
"created_at": "2025-10-22T12:15:34Z",
"completed_at": "2025-10-22T12:15:45Z",
"failed_at": null,
"attempt_count": 1,
"child_executions": [
{
"index": 0,
"workflow_request_id": "0199f126-g92h-0iig-4464-7ff8de373hh1",
"status": "completed",
"label": "→ Agent B",
"target_node_label": "Agent B",
"created_at": "2025-10-22T12:15:35Z",
"completed_at": "2025-10-22T12:15:44Z",
"nodes": []
}
],
"total_children": 1,
"has_more_children": false
}
]
}
}
Node Status Values
pending- Queued for executionrunning- Currently executingcompleted- Finished successfullyfailed- Execution failedblocked- Waiting for dependenciesstopped- Manually stopped
Use Cases
- Debugging - Visualize complete execution flow
- Analytics - Analyze workflow performance
- Audit logs - Track what executed and when
- Error analysis - Find where execution failed
Notes
Authentication required: Include Bearer token in Authorization header
Use this endpoint to build execution visualizations or debug complex multi-agent workflows.
Authorizations
API token generated from your Splox account settings. Create tokens at https://app.splox.io/account?tab=settings
Path Parameters
Workflow request ID
Response
200 - application/json
Execution tree retrieved successfully
Show child attributes
Show child attributes
⌘I

