Pages and regions
A backend layout names its columns. tca-api-headless sends the content of each column under that name in regions, in backend order; colPos never reaches the frontend.
Proofregions.intro[0]
Request GET / #/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": 2030,
"CType": "textmedia",
"header": "Pages and regions",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "A backend layout names its columns. tca-api-headless sends the content of each column under that name in "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "regions"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": ", in backend order; "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "colPos"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": " never reaches the frontend."
}
]
}
],
"assets": [
{
"uid": 2020,
"name": "regions.jpg",
"extension": "jpg",
"publicUrl": "/fileadmin/website/plates/regions.jpg",
"mimeType": "image/jpeg",
"fileSize": 125517,
"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;
};
Named by the backend layout
This page has no layout of its own. It inherits Feature from its parent, which sets it for its subpages. Its columns are named intro, main and specimen, and so are the regions:
GET /_api/headless_pages/2003 Response 200GET /website/_api/headless_pages/2003
Request GET / 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/2003",
"uid": 2003,
"title": "Pages and regions",
"slug": "/features/regions",
"seo_title": "",
"description": "Content arrives grouped by the column identifiers of the backend layout.",
"no_index": 0,
"no_follow": 0,
"canonical_link": null,
"og_title": "",
"og_description": null,
"og_image": [
{
"uid": 2020,
"name": "regions.jpg",
"extension": "jpg",
"publicUrl": "https://typo3.example/fileadmin/_processed_/9/d/csm_regions_23595cd10d.jpg",
"mimeType": "image/jpeg",
"fileSize": 125517,
"metadata": {
"title": null,
"alternative": "Translucent cyan, magenta and yellow layout sheets with column grids stacked on a light table, their overlaps mixing into new colours",
"description": null,
"copyright": null
},
"width": 1536,
"height": 806
}
],
"breadcrumbs": [
{
"uid": 2000,
"title": "tca-api-headless",
"nav_title": "",
"url": "https://typo3.example/website/",
"doktype": 1
},
{
"uid": 2002,
"title": "Features",
"nav_title": "",
"url": "https://typo3.example/website/features",
"doktype": 1
},
{
"uid": 2003,
"title": "Pages and regions",
"nav_title": "",
"url": "https://typo3.example/website/features/regions",
"doktype": 1
}
],
"languages": [
{
"languageId": 0,
"locale": "en-US",
"hreflang": "en",
"title": "English",
"url": "https://typo3.example/website/features/regions",
"available": true,
"active": true
},
{
"languageId": 1,
"locale": "de-DE",
"hreflang": "de",
"title": "German",
"url": "https://typo3.example/website/de/funktionen/regionen",
"available": true,
"active": false
}
],
"meta": {
"robots": "index,follow",
"canonical": "https://typo3.example/website/features/regions",
"schema": {
"@context": "https://schema.org",
"@type": "WebPage",
"url": "https://typo3.example/website/features/regions",
"name": "Pages and regions",
"inLanguage": "en",
"description": "Content arrives grouped by the column identifiers of the backend layout."
},
"alternates": [
{
"hreflang": "en",
"href": "https://typo3.example/website/features/regions"
},
{
"hreflang": "de",
"href": "https://typo3.example/website/de/funktionen/regionen"
},
{
"hreflang": "x-default",
"href": "https://typo3.example/website/features/regions"
}
]
},
"regions": {
"intro": [/* 1 element */],
"main": [/* 3 elements */],
"specimen": [/* 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"][];
};
shortcut?: components["schemas"]["HeadlessPagesShortcut"] | null;
};Proofregions.main[0]
Request GET / #/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": 2031,
"CType": "text",
"header": "Named by the backend layout",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "This page has no layout of its own. It inherits "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"em"
],
"text": "Feature"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": " from its parent, which sets it for its subpages. Its columns are named "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "intro"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": ", "
},
{
"_type": "span",
"_key": "k6",
"marks": [
"code"
],
"text": "main"
},
{
"_type": "span",
"_key": "k7",
"marks": [],
"text": " and "
},
{
"_type": "span",
"_key": "k8",
"marks": [
"code"
],
"text": "specimen"
},
{
"_type": "span",
"_key": "k9",
"marks": [],
"text": ", and so are the regions:"
}
]
},
{
"_type": "block",
"_key": "k10",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k11",
"marks": [
"code"
],
"text": "GET /_api/headless_pages/2003"
}
]
}
],
"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;
};Or by a site setting
Pages without a backend layout name their columns with the site setting regions, one colPos:name per column. Kettenblatt has no layouts at all:
tca_api_headless:
regions:
- '0:main'
- '1:aside'GET https://kettenblatt.example/_api/headless_pages/3001 Response 200GET /kettenblatt/_api/headless_pages/3001
Request GET / 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.main[1]
Request GET / #/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": 2032,
"CType": "text",
"header": "Or by a site setting",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "Pages without a backend layout name their columns with the site setting "
},
{
"_type": "span",
"_key": "k2",
"marks": [
"code"
],
"text": "regions"
},
{
"_type": "span",
"_key": "k3",
"marks": [],
"text": ", one "
},
{
"_type": "span",
"_key": "k4",
"marks": [
"code"
],
"text": "colPos:name"
},
{
"_type": "span",
"_key": "k5",
"marks": [],
"text": " per column. Kettenblatt has no layouts at all:"
}
]
},
{
"_type": "block",
"_key": "k6",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k7",
"marks": [
"code"
],
"text": "tca_api_headless:\n regions:\n - '0:main'\n - '1:aside'"
}
]
},
{
"_type": "block",
"_key": "k8",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k9",
"marks": [
"code"
],
"text": "GET https://kettenblatt.example/_api/headless_pages/3001"
}
]
}
],
"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;
};What a region holds
The visible content elements of the page in the request language, each with the columns of its type. Content in a column without a name is left out; a page without content sends an empty object.
Proofregions.main[2]
Request GET / #/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": 2033,
"CType": "text",
"header": "What a region holds",
"header_layout": 0,
"header_position": "",
"header_link": null,
"subheader": "",
"bodytext": [
{
"_type": "block",
"_key": "k0",
"style": "normal",
"markDefs": [],
"children": [
{
"_type": "span",
"_key": "k1",
"marks": [],
"text": "The visible content elements of the page in the request language, each with the columns of its type. Content in a column without a name is left out; a page without content sends an empty object."
}
]
}
],
"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;
};
