Skip to content
OvertCMS Docs

Delivery API (Clients) Content

Get a single published entry (or draft preview)

GET /delivery/v1/{postType}/{idOrSlug}

Fetches a single published entry by UUID or slug. Supply a valid single-entry X-Preview-Token header to inspect draftData (preview: true, Cache-Control: private, no-store, zero Surrogate-Key).

Authentication

  • Bearer token BearerApiKey optional

    Optional scoped API key (Authorization: Bearer ocms_...) with delivery:read scope. Required only when OVERTCMS_DELIVERY_REQUIRE_API_KEY=true.

  • X-Preview-Token header PreviewToken optional

    Single-entry signed draft preview token (pv_...) issued by the Agent or Admin plane.

Path parameters

  • postType string required
    Post type slug.
  • idOrSlug string required
    Entry UUID or URL slug.

Query parameters

  • locale string
    Locale code to query (defaults to the site's defaultLocale).
  • fields string
    Comma-separated list of top-level data field keys to project.
  • expand string
    Comma-separated list of reference field keys to expand inline (batched, zero N+1).
  • depth integer
    Reference expansion depth (0-2; defaults to 1 when expand is set, capped at 2).

    min 0, max 2

  • include string
    Comma-separated list of derived HTML projections to include for rich_html fields (plainText, wordCount, headings, readingTime).

Headers

  • If-None-Match string
    Conditional GET validator matching a previously received ETag. Returns 304 Not Modified when unchanged.
  • X-Preview-Token string
    Optional single-entry signed draft preview token (pv_...). Bypasses L2 cache, returns draftData with preview: true, sets Cache-Control: private, no-store, and omits Surrogate-Key.

Responses

  • 200 Single entry payload.

    application/json

    • entry DeliveryEntry required
      Read-only public projection of a published entry (or draft entry when authenticated with a valid X-Preview-Token).
      Show 10 fields
      • children array of DeliveryEntry
        Nested published children (populated when tree=true on self-referencing post types, max depth 5 / 1000 nodes).
      • data object required
      • id string, uuid required

        Example 0195c0a1-7e20-7000-8000-000000000099

      • locale string required

        Example en

      • postType string required

        Example posts

      • projections map of RichHTMLProjection
        Map of rich_html field key to derived projections (populated when include query param is set).
        Show 4 fields
        • headings array of HeadingOutline
          Show 3 fields
          • id string required

            Example three-plane-architecture

          • level integer required

            min 1, max 6, Example 2

          • text string required

            Example Three-Plane Architecture

        • plainText string

          Example OvertCMS separates Delivery, Agent, and Admin traffic.

        • readingTime integer
          Estimated reading time in minutes.

          Example 2

        • wordCount integer

          Example 420

      • publicUrl string required

        Example https://example.com/blog/introducing-overtcms

      • publishedAt string, date-time nullable

        Example 2026-05-01T14:00:00Z

      • slug string required

        Example introducing-overtcms

      • updatedAt string, date-time required

        Example 2026-05-01T14:30:00Z

    • preview boolean
      Present and true only when serving a draft via a valid X-Preview-Token header.

      Example true

  • 304 Not Modified — client cached ETag matches the current response.
  • 400 Invalid depth or include parameter.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 401 Invalid API key or preview token.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 API key is not permitted to read this post type.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 404 Published entry not found.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here