Get the navigation tree
GET
https://example.com/api/v1/nav.jsonReturns the navigation groups and their links. The href value is relative to your site URL, and the url value is absolute. A link with nested pages also has a children array of links.
Responses
200
Navigation groups and their links
Content type: application/json
groupsarray<object>RequiredShow Child Attributes
titlestringRequiredhrefstringRequiredurlstring (uri)Requireditemsarray<object>RequiredShow Child Attributes
titlestringRequiredhrefstringRequiredurlstring (uri)Requiredchildrenarray<NavLink>
{
"groups": [
{
"title": "Get Started",
"href": "/",
"url": "https://example.com/",
"items": [
{
"title": "Quickstart",
"href": "/quickstart",
"url": "https://example.com/quickstart",
"children": [
{}
]
}
]
}
]
}Code samples
curl --request GET \
--url 'https://example.com/api/v1/nav.json'const response = await fetch("https://example.com/api/v1/nav.json", {
method: "GET",
});
console.log(await response.json());import requests
response = requests.request(
"GET",
"https://example.com/api/v1/nav.json",
)
print(response.json())