delivery_get_by_id
Fetch one published content item by documentId exactly as the public Delivery API serves it, including urlPath and SEO metadata, or null if no match.
Instructions
Read one content item by documentId exactly as the website receives it. 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. | |
| 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. | |
| populate | No | How many levels of references and shared blocks to resolve inline, 0-4 (default 0: references stay as ids). | |
| documentId | Yes | The item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content. |