Skip to content
OvertCMS Docs

Delivery API (Clients) Content

List published entries in a collection

GET /delivery/v1/{postType}

Queries published entries using publishedData only, with strict filter/sort validation, keyset cursor pagination, batched zero-N+1 reference expansion (expand + depth), self-referencing tree assembly (parent + tree), and derived HTML projections (include).

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.

Path parameters

  • postType string required
    Collection post type 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).
  • sort string
    Sort field with optional leading - for descending (e.g. -publishedAt, createdAt, updatedAt, slug, or any field with sortable: true). Defaults to -publishedAt.
  • limit integer
    Maximum number of entries to return per page (positive integer; defaults to 20).

    Default 20, min 1

  • cursor string
    Opaque URL-safe base64 keyset pagination cursor from a previous response's nextCursor.
  • parent string
    Filter by parent entry ID on self-referencing post types. Pass root to return top-level entries where the self-reference is null.
  • tree boolean
    When true on a self-referencing post type, attaches nested published children (breadth-first, max depth 5, capped at 1000 total nodes).

    Default false

  • filter map of map of string
    Dynamic filter predicates using bracket syntax filter[field][op]=value (or filter[field]=value for eq). Supported operators: eq, in (comma-separated, max 100), contains, gte, lte. Allowed on system fields (locale, slug, publishedAt, createdAt, updatedAt) and schema fields marked filterable: true.

Headers

  • If-None-Match string
    Conditional GET validator matching a previously received ETag. Returns 304 Not Modified when unchanged.

Responses

  • 200 Paginated list of published entries.

    application/json

    • hasMore boolean required

      Example true

    • items array of DeliveryEntry required
      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
        • 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

    • nextCursor string
      Opaque URL-safe base64 keyset cursor for the next page.
  • 304 Not Modified — client cached ETag matches the current response.
  • 400 Invalid filter, sort, limit, depth, tree, include, or cursor 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 Unauthorized.

    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 Post type 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