tca-api-headless

Content and rich text

Ten content types of the core catalog arrive typed: text, text & media, text & images, image, header, bullets, table, file links, HTML and shortcuts. Each has its own schema, discriminated by CType; bodytext contains HTML only in HTML elements, and a shortcut brings the elements it inserts.

Proofregions.intro[0]

Request GET /website/_api/headless_pages/2009 #/regions/intro/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": 2045,
  "CType": "textmedia",
  "header": "Content and rich text",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bodytext": [
    {
      "_type": "block",
      "_key": "k0",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k1",
          "marks": [],
          "text": "Ten content types of the core catalog arrive typed: text, text & media, text & images, image, header, bullets, table, file links, HTML and shortcuts. Each has its own schema, discriminated by "
        },
        {
          "_type": "span",
          "_key": "k2",
          "marks": [
            "code"
          ],
          "text": "CType"
        },
        {
          "_type": "span",
          "_key": "k3",
          "marks": [],
          "text": "; "
        },
        {
          "_type": "span",
          "_key": "k4",
          "marks": [
            "code"
          ],
          "text": "bodytext"
        },
        {
          "_type": "span",
          "_key": "k5",
          "marks": [],
          "text": " contains HTML only in HTML elements, and a shortcut brings the elements it inserts."
        }
      ]
    }
  ],
  "assets": [
    {
      "uid": 2021,
      "name": "content.jpg",
      "extension": "jpg",
      "publicUrl": "/fileadmin/website/plates/content.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 248813,
      "metadata": {
        "title": null,
        "description": null
      }
    }
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

type HeadlessContentTextmediaRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    CType: "textmedia";
    header?: string;
    header_layout?: number;
    header_position?: string;
    header_link?: components["schemas"]["HeadlessLink"] | null;
    subheader?: string;
    bodytext?: components["schemas"]["PortableText"];
    assets?: components["schemas"]["FileObject"][];
    layout?: number;
    frame_class?: string;
    space_before_class?: string;
    space_after_class?: string;
};
Each content type arrives in its own shape: rich text as Portable Text, lists, tables and files as data.

Rich text as Portable Text

Text from the rich text editor becomes Portable Text: blocks of spans with marks. Strong, emphasis, underline, strike-through and code are decorators; links are annotations.

Headings, quotes and lists

A quote stays a block, with the style blockquote.
  • Lists nest
    • with a level per depth
  • and keep their type.

Other markup is reduced to its text. Scripts and styles are dropped.

Proofregions.main[0]

Request GET /website/_api/headless_pages/2009 #/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": 2046,
  "CType": "text",
  "header": "Rich text as Portable Text",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bodytext": [
    {
      "_type": "block",
      "_key": "k1",
      "style": "normal",
      "markDefs": [
        {
          "_key": "k0",
          "_type": "link",
          "href": "https://www.portabletext.org/",
          "target": "_blank",
          "title": "Portable Text specification"
        }
      ],
      "children": [
        {
          "_type": "span",
          "_key": "k2",
          "marks": [],
          "text": "Text from the rich text editor becomes "
        },
        {
          "_type": "span",
          "_key": "k3",
          "marks": [
            "k0"
          ],
          "text": "Portable Text"
        },
        {
          "_type": "span",
          "_key": "k4",
          "marks": [],
          "text": ": blocks of spans with marks. "
        },
        {
          "_type": "span",
          "_key": "k5",
          "marks": [
            "strong"
          ],
          "text": "Strong"
        },
        {
          "_type": "span",
          "_key": "k6",
          "marks": [],
          "text": ", "
        },
        {
          "_type": "span",
          "_key": "k7",
          "marks": [
            "em"
          ],
          "text": "emphasis"
        },
        {
          "_type": "span",
          "_key": "k8",
          "marks": [],
          "text": ", "
        },
        {
          "_type": "span",
          "_key": "k9",
          "marks": [
            "underline"
          ],
          "text": "underline"
        },
        {
          "_type": "span",
          "_key": "k10",
          "marks": [],
          "text": ", "
        },
        {
          "_type": "span",
          "_key": "k11",
          "marks": [
            "strike-through"
          ],
          "text": "strike-through"
        },
        {
          "_type": "span",
          "_key": "k12",
          "marks": [],
          "text": " and "
        },
        {
          "_type": "span",
          "_key": "k13",
          "marks": [
            "code"
          ],
          "text": "code"
        },
        {
          "_type": "span",
          "_key": "k14",
          "marks": [],
          "text": " are decorators; links are annotations."
        }
      ]
    },
    {
      "_type": "block",
      "_key": "k15",
      "style": "h3",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k16",
          "marks": [],
          "text": "Headings, quotes and lists"
        }
      ]
    },
    {
      "_type": "block",
      "_key": "k17",
      "style": "blockquote",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k18",
          "marks": [],
          "text": "A quote stays a block, with the style blockquote."
        }
      ]
    },
    {
      "_type": "block",
      "_key": "k19",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k20",
          "marks": [],
          "text": "Lists nest"
        }
      ],
      "listItem": "bullet",
      "level": 1
    },
    {
      "_type": "block",
      "_key": "k21",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k22",
          "marks": [],
          "text": "with a level per depth"
        }
      ],
      "listItem": "bullet",
      "level": 2
    },
    {
      "_type": "block",
      "_key": "k23",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k24",
          "marks": [],
          "text": "and keep their type."
        }
      ],
      "listItem": "bullet",
      "level": 1
    },
    {
      "_type": "block",
      "_key": "k25",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k26",
          "marks": [],
          "text": "Other markup is reduced to its text. Scripts and styles are dropped."
        }
      ]
    }
  ],
  "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;
};

Bullets

  • One string per line
  • for unordered and ordered lists
  • and an object per line for definition lists, below
Proofregions.main[1]

Request GET /website/_api/headless_pages/2009 #/regions/main/1 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": 2047,
  "CType": "bullets",
  "header": "Bullets",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bullets_type": 0,
  "bodytext": [
    "One string per line",
    "for unordered and ordered lists",
    "and an object per line for definition lists, below"
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

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

Glossary

Region
A column of the backend layout, named by its identifier
Composed page
A page with its SEO fields, meta and regions in one response
Portable Text
A JSON format for rich text: blocks, spans, marks
Fallback type
A content type outside the catalog, sent with uid, CType and header
Proofregions.main[2]

Request GET /website/_api/headless_pages/2009 #/regions/main/2 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": 2048,
  "CType": "bullets",
  "header": "Glossary",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bullets_type": 2,
  "bodytext": [
    {
      "term": "Region",
      "definition": "A column of the backend layout, named by its identifier"
    },
    {
      "term": "Composed page",
      "definition": "A page with its SEO fields, meta and regions in one response"
    },
    {
      "term": "Portable Text",
      "definition": "A JSON format for rich text: blocks, spans, marks"
    },
    {
      "term": "Fallback type",
      "definition": "A content type outside the catalog, sent with uid, CType and header"
    }
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

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

Body text by type

The shape of bodytext per content type
CTypebodytext arrives as
text, textmediaPortable Text
bulletsa list of strings, or of term and definition
tablehead, body and foot rows
every typeheader and header_link besides
Proofregions.main[3]

Request GET /website/_api/headless_pages/2009 #/regions/main/3 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": 2049,
  "CType": "table",
  "header": "Body text by type",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bodytext": {
    "head": [
      "CType",
      "bodytext arrives as"
    ],
    "body": [
      [
        "text, textmedia",
        "Portable Text"
      ],
      [
        "bullets",
        "a list of strings, or of term and definition"
      ],
      [
        "table",
        "head, body and foot rows"
      ]
    ],
    "foot": [
      "every type",
      "header and header_link besides"
    ]
  },
  "table_caption": "The shape of bodytext per content type",
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": "",
  "table_header_position": 1
}

Generated TypeScript type

type HeadlessContentTableRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    CType: "table";
    header?: string;
    header_layout?: number;
    header_position?: string;
    header_link?: components["schemas"]["HeadlessLink"] | null;
    subheader?: string;
    bodytext?: components["schemas"]["HeadlessTable"];
    table_caption?: string | null;
    layout?: number;
    frame_class?: string;
    space_before_class?: string;
    space_after_class?: string;
    table_header_position?: number;
};

Images

Proof sheets on cyan, yellow, magenta and white paper, printed with colour blocks and halftone fields, fanned out on a light table, one lifted to show a ruled grid underneath
A simple diagram: two crossing lines
Proofregions.main[4]

Request GET /website/_api/headless_pages/2009 #/regions/main/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

{
  "uid": 2050,
  "CType": "image",
  "header": "Images",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "image": [
    {
      "uid": 2000,
      "name": "proof-sheet.jpg",
      "extension": "jpg",
      "publicUrl": "/fileadmin/website/proof-sheet.jpg",
      "mimeType": "image/jpeg",
      "fileSize": 109399,
      "metadata": {
        "title": null,
        "alternative": "Proof sheets on cyan, yellow, magenta and white paper, printed with colour blocks and halftone fields, fanned out on a light table, one lifted to show a ruled grid underneath",
        "description": null,
        "copyright": null
      },
      "cropVariants": {}
    },
    {
      "uid": 2010,
      "name": "diagram.svg",
      "extension": "svg",
      "publicUrl": "/fileadmin/website/diagram.svg",
      "mimeType": "image/svg+xml",
      "fileSize": 203,
      "metadata": {
        "title": null,
        "alternative": "A simple diagram: two crossing lines",
        "description": null,
        "copyright": null
      },
      "cropVariants": {}
    }
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

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

File links

Proofregions.main[5]

Request GET /website/_api/headless_pages/2009 #/regions/main/5 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": 2051,
  "CType": "uploads",
  "header": "File links",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "media": [
    {
      "uid": 2026,
      "name": "cheat-sheet.txt",
      "extension": "txt",
      "publicUrl": "/fileadmin/website/cheat-sheet.txt",
      "mimeType": "text/plain",
      "fileSize": 632,
      "metadata": {
        "title": null,
        "description": "Every request of the extension on one page"
      }
    }
  ],
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

type HeadlessContentUploadsRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    CType: "uploads";
    header?: string;
    header_layout?: number;
    header_position?: string;
    header_link?: components["schemas"]["HeadlessLink"] | null;
    subheader?: string;
    media?: components["schemas"]["FileObject"][];
    layout?: number;
    frame_class?: string;
    space_before_class?: string;
    space_after_class?: string;
};

Types outside the catalog

Other content types are left out, unless the site lists them in fallbackCTypes. Then they arrive with uid, CType and header only, typed as HeadlessContentFallbackRead. Kettenblatt allows menu_subpages; the page menu on its Visit page below is one.

Proofregions.main[6]

Request GET /website/_api/headless_pages/2009 #/regions/main/6 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": 2052,
  "CType": "text",
  "header": "Types outside the catalog",
  "header_layout": 0,
  "header_position": "",
  "header_link": null,
  "subheader": "",
  "bodytext": [
    {
      "_type": "block",
      "_key": "k0",
      "style": "normal",
      "markDefs": [],
      "children": [
        {
          "_type": "span",
          "_key": "k1",
          "marks": [],
          "text": "Other content types are left out, unless the site lists them in "
        },
        {
          "_type": "span",
          "_key": "k2",
          "marks": [
            "code"
          ],
          "text": "fallbackCTypes"
        },
        {
          "_type": "span",
          "_key": "k3",
          "marks": [],
          "text": ". Then they arrive with "
        },
        {
          "_type": "span",
          "_key": "k4",
          "marks": [
            "code"
          ],
          "text": "uid"
        },
        {
          "_type": "span",
          "_key": "k5",
          "marks": [],
          "text": ", "
        },
        {
          "_type": "span",
          "_key": "k6",
          "marks": [
            "code"
          ],
          "text": "CType"
        },
        {
          "_type": "span",
          "_key": "k7",
          "marks": [],
          "text": " and "
        },
        {
          "_type": "span",
          "_key": "k8",
          "marks": [
            "code"
          ],
          "text": "header"
        },
        {
          "_type": "span",
          "_key": "k9",
          "marks": [],
          "text": " only, typed as "
        },
        {
          "_type": "span",
          "_key": "k10",
          "marks": [
            "code"
          ],
          "text": "HeadlessContentFallbackRead"
        },
        {
          "_type": "span",
          "_key": "k11",
          "marks": [],
          "text": ". Kettenblatt allows "
        },
        {
          "_type": "span",
          "_key": "k12",
          "marks": [
            "code"
          ],
          "text": "menu_subpages"
        },
        {
          "_type": "span",
          "_key": "k13",
          "marks": [],
          "text": "; the page menu on its Visit page below is one."
        }
      ]
    }
  ],
  "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;
};

Same API, another frontend

Fictional specimen site, rendered by the same API.

Kettenblatt: Repairs

Repairs

Hands truing a spoked wheel with a spoke key

What we fix

Puncture
Tube or tyre swapped while you wait
Brakes
Pads, cables and bleeding, rim or disc
Wheels
Trued, re-spoked or built from scratch
Drivetrain
Chain, cassette and chainring, cleaned or replaced

Prices

Prices in euros, parts extra
ServicePrice
Puncture15
Brake service25
Wheel truing20
Chain swap12
Hourly rate48
ProofGET /kettenblatt/_api/headless_pages/3007

Request GET /kettenblatt/_api/headless_pages/3007 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": "HeadlessPages",
  "@id": "/_api/headless_pages/3007",
  "uid": 3007,
  "title": "Repairs",
  "slug": "/repairs",
  "seo_title": "",
  "description": "What we fix, and what it costs.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [],
  "breadcrumbs": [
    {
      "uid": 3000,
      "title": "Kettenblatt",
      "nav_title": "",
      "url": "https://typo3.example/kettenblatt/",
      "doktype": 1
    },
    {
      "uid": 3007,
      "title": "Repairs",
      "nav_title": "",
      "url": "https://typo3.example/kettenblatt/repairs",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/kettenblatt/repairs",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/kettenblatt/de/reparatur",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/kettenblatt/repairs",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/kettenblatt/repairs",
      "name": "Repairs",
      "inLanguage": "en",
      "description": "What we fix, and what it costs."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/kettenblatt/repairs"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/kettenblatt/de/reparatur"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/kettenblatt/repairs"
      }
    ]
  },
  "regions": {
    "main": [/* 2 elements */],
    "aside": [/* 1 element */]
  }
}

Generated TypeScript type

type HeadlessPagesRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    title?: string;
    slug?: string | null;
    seo_title?: string;
    description?: string | null;
    no_index?: number;
    no_follow?: number;
    canonical_link?: components["schemas"]["HeadlessLink"] | null;
    og_title?: string;
    og_description?: string | null;
    og_image?: components["schemas"]["FileObject"][];
    breadcrumbs: components["schemas"]["HeadlessPagesBreadcrumb"][];
    languages: components["schemas"]["HeadlessPagesLanguage"][];
    meta: components["schemas"]["HeadlessPagesMeta"];
    regions: {
        [key: string]: (components["schemas"]["HeadlessContentRead"] | components["schemas"]["HeadlessContentFallbackRead"])[];
    };
    shortcut?: components["schemas"]["HeadlessPagesShortcut"] | null;
};
Proofregions.specimen[0]

Request GET /website/_api/headless_pages/2009 #/regions/specimen/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": 2053,
  "CType": "header",
  "header": "Kettenblatt: Repairs",
  "header_layout": 0,
  "header_position": "",
  "header_link": {
    "href": "https://typo3.example/kettenblatt/repairs",
    "target": null,
    "title": null
  },
  "subheader": "",
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

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

Kettenblatt: Visit

Workshop pages

menu_subpages

Find us

A hand-drawn map of the district with a river and a circle around the workshop
The brick front of the workshop with open wooden doors and two bikes outside

Opening hours

Tuesday to Saturday, 10:00 to 18:00. Write to workshop@kettenblatt.example.

ProofGET /kettenblatt/_api/headless_pages/3001

Request GET /kettenblatt/_api/headless_pages/3001 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": "HeadlessPages",
  "@id": "/_api/headless_pages/3001",
  "uid": 3001,
  "title": "Visit",
  "slug": "/visit",
  "seo_title": "",
  "description": "Opening hours and how to find us.",
  "no_index": 0,
  "no_follow": 0,
  "canonical_link": null,
  "og_title": "",
  "og_description": null,
  "og_image": [],
  "breadcrumbs": [
    {
      "uid": 3000,
      "title": "Kettenblatt",
      "nav_title": "",
      "url": "https://typo3.example/kettenblatt/",
      "doktype": 1
    },
    {
      "uid": 3001,
      "title": "Visit",
      "nav_title": "",
      "url": "https://typo3.example/kettenblatt/visit",
      "doktype": 1
    }
  ],
  "languages": [
    {
      "languageId": 0,
      "locale": "en-US",
      "hreflang": "en",
      "title": "English",
      "url": "https://typo3.example/kettenblatt/visit",
      "available": true,
      "active": true
    },
    {
      "languageId": 1,
      "locale": "de-DE",
      "hreflang": "de",
      "title": "German",
      "url": "https://typo3.example/kettenblatt/de/besuch",
      "available": true,
      "active": false
    }
  ],
  "meta": {
    "robots": "index,follow",
    "canonical": "https://typo3.example/kettenblatt/visit",
    "schema": {
      "@context": "https://schema.org",
      "@type": "WebPage",
      "url": "https://typo3.example/kettenblatt/visit",
      "name": "Visit",
      "inLanguage": "en",
      "description": "Opening hours and how to find us."
    },
    "alternates": [
      {
        "hreflang": "en",
        "href": "https://typo3.example/kettenblatt/visit"
      },
      {
        "hreflang": "de",
        "href": "https://typo3.example/kettenblatt/de/besuch"
      },
      {
        "hreflang": "x-default",
        "href": "https://typo3.example/kettenblatt/visit"
      }
    ]
  },
  "regions": {
    "main": [/* 2 elements */],
    "aside": [/* 1 element */]
  }
}

Generated TypeScript type

type HeadlessPagesRead = {
    "@type"?: string;
    "@id"?: string;
    uid?: number;
    title?: string;
    slug?: string | null;
    seo_title?: string;
    description?: string | null;
    no_index?: number;
    no_follow?: number;
    canonical_link?: components["schemas"]["HeadlessLink"] | null;
    og_title?: string;
    og_description?: string | null;
    og_image?: components["schemas"]["FileObject"][];
    breadcrumbs: components["schemas"]["HeadlessPagesBreadcrumb"][];
    languages: components["schemas"]["HeadlessPagesLanguage"][];
    meta: components["schemas"]["HeadlessPagesMeta"];
    regions: {
        [key: string]: (components["schemas"]["HeadlessContentRead"] | components["schemas"]["HeadlessContentFallbackRead"])[];
    };
    shortcut?: components["schemas"]["HeadlessPagesShortcut"] | null;
};
Proofregions.specimen[1]

Request GET /website/_api/headless_pages/2009 #/regions/specimen/1 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": 2054,
  "CType": "header",
  "header": "Kettenblatt: Visit",
  "header_layout": 0,
  "header_position": "",
  "header_link": {
    "href": "https://typo3.example/kettenblatt/visit",
    "target": null,
    "title": null
  },
  "subheader": "",
  "layout": 0,
  "frame_class": "default",
  "space_before_class": "",
  "space_after_class": ""
}

Generated TypeScript type

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