Fetch a Menu Tree — a hierarchical collection of records assembled from a Data Storage usingDocumentation Index
Fetch the complete documentation index at: https://docs.frontic.com/llms.txt
Use this file to discover all available pages before exploring further.
parentKey and position defaults, with each node rendered through a Detail Block.
<tree-slug>. Per project — see your tree’s detail view in the API Builder.items contains a single entry — the node with this key, plus its descendants. Without a key, items contains every root-level node (records with no parent).$items are included. Without it, all levels are returned (subject to the 1,000-node cap).fs-context, fs-domain, fs-version, and fs-secret (only when the project has fetch keys configured).
items array. When called without a key, this array lists every root-level node (records with no parent); when called with one, it holds only the matching node — still wrapped in a list, for shape consistency with the unkeyed call. Each node’s subtree is carried on its own $items field.
| Code | When |
|---|---|
200 | Tree (or subtree) returned |
401 | fs-secret missing or wrong (only when the project has fetch keys configured) |
403 | Project’s plan limit for Fetch API requests exceeded |
404 | Tree slug doesn’t exist, or key doesn’t match a node |