Get Space Tree
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/tree \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/tree"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"space": "<string>",
"address": "<string>",
"depth": 123,
"children_count": 123,
"pages": [
{
"address": "<string>",
"path": "<string>",
"id": "<string>",
"title": "<string>",
"depth": 123,
"position": 123,
"children_count": 123,
"summary": "<string>",
"updated_at": "<string>"
}
],
"truncated": true,
"object": "space_tree",
"hint": "<string>"
}Spaces
Get Space Tree
List the pages under a space or a page, with their paths, child counts and one-line summaries.
GET
/
api
/
v1
/
spaces
/
tree
Get Space Tree
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/tree \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/tree"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"space": "<string>",
"address": "<string>",
"depth": 123,
"children_count": 123,
"pages": [
{
"address": "<string>",
"path": "<string>",
"id": "<string>",
"title": "<string>",
"depth": 123,
"position": 123,
"children_count": 123,
"summary": "<string>",
"updated_at": "<string>"
}
],
"truncated": true,
"object": "space_tree",
"hint": "<string>"
}