delivery_global
Retrieve published global singletons (headers, footers, settings) by type as the website displays them, with private fields removed and computed metadata. Returns null if not found.
Instructions
Read a global singleton (header, footer, site settings…) by its type, as the website receives it. Find the types with list_globals. Returns the item as the public Delivery API serves it — published only (unless preview), private fields removed, plus computed urlPath, fieldTypes and SEO metadata on pages — or null when nothing matches. Use get_content to read a draft for editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content. | |
| type | Yes | The global's content type name, e.g. 'SiteHeader'. | |
| locale | No | Locale code. Omit for the document's own locale (its site-default variant, else its only variant). | |
| preview | No | true = read the latest drafts as the preview pane shows them (needs site-wide read access). Default false: published content only, exactly what visitors get. |