List Pending Tree
curl --request GET \
--url https://api.example.com/api/v1/kg/boards/{board_id}/pending/treeimport requests
url = "https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/kg/boards/{board_id}/pending/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://api.example.com/api/v1/kg/boards/{board_id}/pending/tree",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/api/v1/kg/boards/{board_id}/pending/tree"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}knowledge-graph
List Pending Tree
Hierarchical pending-queue view (spec f33eb9ca — Layer 4 Pending Queue UI).
Returns a 5-level tree: Ideations → Refinements → Specs → Sprints →
Cards, each level annotated with aggregate status counters drawn from
`consolidation_queue`. The UI renders this via
`frontend/src/components/knowledge/PendingQueueTree.tsx` with lazy
expansion by level (BR `Tree Lazy Fetch por Nível`).
Payload shape (stable — consumed by React component):
{
"board_id": str,
"total_pending": int,
"levels": {ideations: {pending,in_progress,done,failed},
refinements: ..., specs: ..., sprints: ..., cards: ...},
"tree": [ideation-nodes with nested children]
}
GET
/
api
/
v1
/
kg
/
boards
/
{board_id}
/
pending
/
tree
List Pending Tree
curl --request GET \
--url https://api.example.com/api/v1/kg/boards/{board_id}/pending/treeimport requests
url = "https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/kg/boards/{board_id}/pending/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://api.example.com/api/v1/kg/boards/{board_id}/pending/tree",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.example.com/api/v1/kg/boards/{board_id}/pending/tree"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/kg/boards/{board_id}/pending/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Last modified on May 17, 2026