delivery_get_by_slug
Read a published content item by its URL slug, returning it as the public Delivery API serves it with computed urlPath and SEO metadata, or null when nothing matches.
Instructions
Read one content item by its slug (the last URL segment). Slugs are unique only among siblings, so prefer delivery_get_by_path for a page's full URL. 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. | |
| slug | Yes | The slug, without slashes, e.g. 'about-us'. | |
| 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). |