List containers (tree)
curl --request GET \
--url https://versuno.ai/api/public/brains/{id}/containers/tree \
--header 'Authorization: <api-key>'import requests
url = "https://versuno.ai/api/public/brains/{id}/containers/tree"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://versuno.ai/api/public/brains/{id}/containers/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/brains/{id}/containers/tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/brains/{id}/containers/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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/brains/{id}/containers/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://versuno.ai/api/public/brains/{id}/containers/tree")
.header("Authorization", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/brains/{id}/containers/tree");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
[
{
"id": "e5f6a7b8-c9d0-1234-ef01-567890123456",
"brainId": "d4e5f6a7-b8c9-0123-def0-456789012345",
"name": "Routing",
"canonicalName": "routing",
"description": "Pages, layouts, and navigation.",
"parentId": null,
"createdAt": "2026-06-01T08:05:00.000Z",
"children": "<array>"
}
]{
"error": "Invalid API key"
}Public Brains
List containers (tree)
Returns the brain’s containers as a nested tree, each carrying its children.
GET
/
brains
/
{id}
/
containers
/
tree
List containers (tree)
curl --request GET \
--url https://versuno.ai/api/public/brains/{id}/containers/tree \
--header 'Authorization: <api-key>'import requests
url = "https://versuno.ai/api/public/brains/{id}/containers/tree"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://versuno.ai/api/public/brains/{id}/containers/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/brains/{id}/containers/tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/brains/{id}/containers/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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/brains/{id}/containers/tree")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://versuno.ai/api/public/brains/{id}/containers/tree")
.header("Authorization", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/brains/{id}/containers/tree");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
[
{
"id": "e5f6a7b8-c9d0-1234-ef01-567890123456",
"brainId": "d4e5f6a7-b8c9-0123-def0-456789012345",
"name": "Routing",
"canonicalName": "routing",
"description": "Pages, layouts, and navigation.",
"parentId": null,
"createdAt": "2026-06-01T08:05:00.000Z",
"children": "<array>"
}
]{
"error": "Invalid API key"
}Authorizations
Versuno API key. Must be prefixed with Bearer. Format: Bearer uk_live_...
Path Parameters
ID of the brain.
Response
Array of root container trees.
Unique identifier for the container.
Example:
"e5f6a7b8-c9d0-1234-ef01-567890123456"
ID of the brain this container belongs to.
Example:
"d4e5f6a7-b8c9-0123-def0-456789012345"
Display name of the container.
Example:
"Routing"
Stable, canonical name of the container.
Example:
"routing"
Short summary of the container, or null.
Example:
"Pages, layouts, and navigation."
ID of the parent container, or null for a top-level container.
Example:
null
When the container was created.
Example:
"2026-06-01T08:05:00.000Z"
Child containers, recursively nested.
Was this page helpful?

