HOC SiteDocumentation

get_chrome

Load site header or footer. kind header is the chrome-header design surface and kind footer is chrome-footer. channel=email reads the email template header/footer instead; it has no revision history, so versions, revisionId, and publishStatus apply to the site chrome only. Default mode=summary returns {id,type,propsKeys} per block and sets truncated. mode=full returns the stored tree. propsKeys are the saved top-level keys, including group names and shell. mode=translation-gaps returns per-locale overlay gaps vs primary. blockId returns that block subtree only. A summary is not a write body. Edit with a partial content tree or ops. Ops paths use the nested schema, such as shell.anchor.anchorId. Pass includeStyle=true to attach resolved theme tokens (colours, fonts, radius, section padding, container width, breakpoints); style is omitted by default. Block props still take token paths such as colors.text.primary.

get_chrome · Group: design

Inputs

websiteId

required

kind

required

channel

optional — website (default) reads the site header/footer. email reads the email template header/footer.

versions

optional — List this many stored revisions of the chrome instead.

revisionId

optional — Return one stored revision of the chrome instead.

publishStatus

optional — { path, revisionId }: report whether that revision is the one served for the path.

contentLocale

optional

mode

optional — summary (default) | full | translation-gaps. summary returns ids and saved keys. full returns the stored tree.

blockId

optional

blockType

optional — Summary filter: block type.

under

optional — Summary filter: this block and its descendants.

depth

optional — Summary filter: max depth.

propsKeys

optional — Summary: false returns id and type only.

includeDefaults

optional — true or annotate. Applies to mode=full.

includeStyle

optional

Schema

{
  "name": "get_chrome",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "kind",
      "required": true
    },
    {
      "name": "channel",
      "required": false,
      "description": "website (default) reads the site header/footer. email reads the email template header/footer."
    },
    {
      "name": "versions",
      "required": false,
      "description": "List this many stored revisions of the chrome instead."
    },
    {
      "name": "revisionId",
      "required": false,
      "description": "Return one stored revision of the chrome instead."
    },
    {
      "name": "publishStatus",
      "required": false,
      "description": "{ path, revisionId }: report whether that revision is the one served for the path."
    },
    {
      "name": "contentLocale",
      "required": false
    },
    {
      "name": "mode",
      "required": false,
      "description": "summary (default) | full | translation-gaps. summary returns ids and saved keys. full returns the stored tree."
    },
    {
      "name": "blockId",
      "required": false
    },
    {
      "name": "blockType",
      "required": false,
      "description": "Summary filter: block type."
    },
    {
      "name": "under",
      "required": false,
      "description": "Summary filter: this block and its descendants."
    },
    {
      "name": "depth",
      "required": false,
      "description": "Summary filter: max depth."
    },
    {
      "name": "propsKeys",
      "required": false,
      "description": "Summary: false returns id and type only."
    },
    {
      "name": "includeDefaults",
      "required": false,
      "description": "true or annotate. Applies to mode=full."
    },
    {
      "name": "includeStyle",
      "required": false
    }
  ]
}

Maps to

  • GET /api/v1/{locale}/{websiteId}/chrome/header → API
  • GET /api/v1/{locale}/{websiteId}/chrome/footer → API
  • GET /api/v1/{locale}/{websiteId}/email-chrome/header → API
  • GET /api/v1/{locale}/{websiteId}/email-chrome/footer → API