• Cheat sheets
  • Documentation
  • API reference
  • Product updates
  • Sign in
Kontent.ai Learn
  • Try Kontent.ai
  • Plan
  • Set up
  • Model
  • Develop
  • Create
Copyright © 2024 Kontent.ai. All rights reserved.
  • Web
  • Privacy policy
  • Cookies policy
  • Consent settings
  • Security
  • GDPR
  • Docs
  • Collections
  • Custom apps
  • Custom elements
  • Environments
  • Keyboard shortcuts
  • Mission Control
  • Projects
    • Create and manage spaces
    • Navigation tree in spaces
    • Retrieve navigation via API
  • Task management
  • Terminology

Retrieve navigation via API

Samina Minda Hossain
< 1 minute
API / Spaces
Download PDF
Using the API's capabilities for linked items, you can seamlessly retrieve navigation with minimal effort.

Get the navigation tree via API

With spaces created in your environment and a root item assigned, you can build your website's navigation structure. The navigation is also freely editable, so you can use it to store other related data.  Based on the content model, a content type contains a subpages element, which creates the navigation tree visible in Kontent.ai. The navigation can then be easily retrieved via the API. It uses the existing functionality for linked items elements. This way, developers don’t need to write two separate logics for linked items and for navigation. Any content type can be a page, given that it contains a subpages element. To retrieve the actual content of your page, access your published content via the API and display it on your website.
  • Get the navigation tree via API