Skip to content

GET site

GET site gives one answer with everything of the site that is not a page.

What it has

  • id, name, environment, domains and languages. environment holds name, is_production, indexable and password.
  • timezone is the time zone of the site, in IANA form, such as Europe/Amsterdam. It says what "today" is on the site. It is set under Site settings → General → Time zone. A planned post goes live at 00:00 in it.
  • settings holds the site settings that a frontend needs. Examples are url_suffix, robots_txt, sitemap, csp, og_*, markdown_enabled, search_enabled, title_suffix, meta_robots, images, related and beacon.
  • theme holds the colours, also for dark mode. It also holds tokens and tokens_css, key, package, logo and logo_dark.
  • fonts holds css, files and details. details gives per file its weight range, unicode-range and bytes. Use it to choose preloads.
  • icons and icon_set.
  • layout holds the header and footer, per language.
  • menus, fragments, hours, modules and templates. fragments are the content blocks. Each set of hours has json_ld and upcoming.
  • redirects only holds rules that can work. Apply them after you look for a page.
  • docs holds the documentation sections, as [{key, root}]. Each one is a page marked as a section, with everything below it. Build the tree from the manifest. See FRONTEND.md, under Documentation sections.
  • third_parties, with their hosts for your CSP. Also consent, speculation_rules, no_vary_search, pwa, webmcp, llms and content_types.
  • media. See below.

Resolved references

  • cms:entry/… becomes an address. So does cms:entry/e_…@en, for another language. A link to something that is not live loses its href, and keeps its words.
  • cms:media/… becomes the address of the file. Every answer has a media map. It maps an address to id, mime, width, height, bytes, alt and caption per language, credits, focus, focus_by, webp, avif and og. See Files and images.
  • A text with shortcodes keeps its html. It gets html_nodes next to it, with the data that each shortcode needs.

Good to know

  • site.version changes when anything here changes. Compare it from the manifest.

Also called: site configuration, global data, site settings JSON.

Last changed