tca-api-headless

Sitemap

Every page of this site in English, from one navigation request at the highest depth the site allows. Pages hidden in menus are not part of it.

GET /_api/headless_navigation/2000?depth=4
Response 200GET /website/_api/headless_navigation/2000?depth=4

Request GET /website/_api/headless_navigation/2000?depth=4 Status 200

Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response

JSON response

{
  "@type": "HeadlessNavigation",
  "@id": "/_api/headless_navigation/2000",
  "uid": 2000,
  "title": "tca-api-headless",
  "nav_title": "",
  "slug": "/",
  "doktype": 1,
  "url": "https://typo3.example/website/",
  "children": [
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2001",
      "uid": 2001,
      "title": "Quick start",
      "nav_title": "",
      "slug": "/quick-start",
      "doktype": 1,
      "url": "https://typo3.example/website/quick-start",
      "children": []
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2002",
      "uid": 2002,
      "title": "Features",
      "nav_title": "",
      "slug": "/features",
      "doktype": 1,
      "url": "https://typo3.example/website/features",
      "children": [
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2003",
          "uid": 2003,
          "title": "Pages and regions",
          "nav_title": "",
          "slug": "/features/regions",
          "doktype": 1,
          "url": "https://typo3.example/website/features/regions",
          "children": []
        },
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2009",
          "uid": 2009,
          "title": "Content and rich text",
          "nav_title": "",
          "slug": "/features/content",
          "doktype": 1,
          "url": "https://typo3.example/website/features/content",
          "children": []
        },
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2010",
          "uid": 2010,
          "title": "Navigation",
          "nav_title": "",
          "slug": "/features/navigation",
          "doktype": 1,
          "url": "https://typo3.example/website/features/navigation",
          "children": []
        },
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2011",
          "uid": 2011,
          "title": "Routing and SEO",
          "nav_title": "",
          "slug": "/features/routing-seo",
          "doktype": 1,
          "url": "https://typo3.example/website/features/routing-seo",
          "children": []
        },
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2012",
          "uid": 2012,
          "title": "Translations",
          "nav_title": "",
          "slug": "/features/translations",
          "doktype": 1,
          "url": "https://typo3.example/website/features/translations",
          "children": []
        },
        {
          "@type": "HeadlessNavigation",
          "@id": "/_api/headless_navigation/2013",
          "uid": 2013,
          "title": "Links",
          "nav_title": "",
          "slug": "/features/links",
          "doktype": 1,
          "url": "https://typo3.example/website/features/links",
          "children": []
        }
      ]
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2014",
      "uid": 2014,
      "title": "Contract",
      "nav_title": "",
      "slug": "/contract",
      "doktype": 1,
      "url": "https://typo3.example/website/contract",
      "children": []
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2016",
      "uid": 2016,
      "title": "Specimen",
      "nav_title": "",
      "slug": "/specimen",
      "doktype": 1,
      "url": "https://typo3.example/website/specimen",
      "children": []
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2015",
      "uid": 2015,
      "title": "Extensions",
      "nav_title": "",
      "slug": "/extensions",
      "doktype": 1,
      "url": "https://typo3.example/website/extensions",
      "children": []
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2017",
      "uid": 2017,
      "title": "Sitemap",
      "nav_title": "",
      "slug": "/sitemap",
      "doktype": 1,
      "url": "https://typo3.example/website/sitemap",
      "children": []
    },
    {
      "@type": "HeadlessNavigation",
      "@id": "/_api/headless_navigation/2004",
      "uid": 2004,
      "title": "Colophon",
      "nav_title": "",
      "slug": "/colophon",
      "doktype": 1,
      "url": "https://typo3.example/website/colophon",
      "children": []
    }
  ]
}

Generated TypeScript type

type HeadlessNavigationRead = {
    "@type"?: string;
    "@id"?: string;
    uid: number;
    title?: string;
    nav_title?: string;
    slug?: string | null;
    doktype?: 1 | 3 | 4;
    url: string;
    children: components["schemas"]["HeadlessNavigationRead"][];
};
Proofregions.main[0]

Request GET /website/_api/headless_pages/2017 #/regions/main/0 Status 200

Recorded at build time from TYPO3 14.3. Host replaced with typo3.example; the data is unchanged. Full JSON response

JSON response

{
  "uid": 2250,
  "CType": "text",
  "header": "Sitemap",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bodytext": [
    {
      "_type": "block",
      "_key": "k0",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k1",
          "marks": [],
          "text": "Every page of this site in English, from one navigation request at the highest depth the site allows. Pages hidden in menus are not part of it."
        }
      ]
    },
    {
      "_type": "block",
      "_key": "k2",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k3",
          "marks": [
            "code"
          ],
          "text": "GET /_api/headless_navigation/2000?depth=4"
        }
      ]
    }
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

type HeadlessContentTextRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    CType: "text";
    header?: string;
    header_layout?: number;
    header_position?: string;
    header_link?: components["schemas"]["HeadlessLink"] | null;
    subheader?: string;
    bodytext?: components["schemas"]["PortableText"];
    layout?: number;
    frame_class?: string;
    space_before_class?: string;
    space_after_class?: string;
};