> ## Documentation Index
> Fetch the complete documentation index at: https://docs.marzipan.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List blog posts

> Returns all published blog posts, ordered by creation date (newest first), each with its author and featured image. This endpoint is not paginated and accepts no query parameters; the full published set is returned in a single `data` array. Responses are cached (fresh for 10 minutes, served stale for up to 1 hour).



## OpenAPI

````yaml /api-reference/openapi.json get /cms/posts
openapi: 3.0.0
info:
  title: Marzipan API
  version: 1.0.0
servers:
  - url: https://api.marzipan.co/v1
security:
  - tenantAuth: []
tags:
  - name: Account
    description: >-
      Account management endpoints including registration, login, and user
      details
  - name: Carts
    description: Shopping cart management endpoints
  - name: Products
    description: Product catalog and search endpoints
  - name: Subscriptions
    description: Subscription management and renewal endpoints
  - name: CMS
    description: Content management system endpoints
  - name: Messaging
    description: Message and communication endpoints
  - name: Search
    description: Search functionality endpoints
  - name: Settings
    description: >-
      Storefront settings and market detection used to configure the web
      components and checkout.
  - name: Analytics
    description: Storefront visit and attribution tracking.
  - name: Rewards
    description: >-
      Loyalty and rewards programme endpoints for the authenticated customer,
      covering points balance, tier status, perks, exclusive products and
      transaction history.
  - name: Forms
    description: Render and submit dynamic storefront forms defined in the CMS.
  - name: Events
    description: >-
      Check event availability, browse occurrences and recurring dates, generate
      ticket QR codes, and manage event waitlists (join, leave, check status,
      and claim promoted spots).
paths:
  /cms/posts:
    get:
      tags:
        - CMS
      summary: List blog posts
      description: >-
        Returns all published blog posts, ordered by creation date (newest
        first), each with its author and featured image. This endpoint is not
        paginated and accepts no query parameters; the full published set is
        returned in a single `data` array. Responses are cached (fresh for 10
        minutes, served stale for up to 1 hour).
      responses:
        '200':
          description: A list of published blog posts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CmsPost'
              example:
                data:
                  - slug: welcome-to-our-store
                    title: Welcome to our store
                    excerpt: A short introduction to what we do.
                    featuredImage: https://cdn.marzipan.co/media/800x600/welcome.jpg
                    author:
                      name: Jane Doe
                    createdAt: '2026-05-01T09:00:00Z'
                    updatedAt: '2026-05-02T11:30:00Z'
components:
  schemas:
    CmsPost:
      type: object
      description: Summary of a published blog post, as returned in list responses.
      properties:
        slug:
          type: string
          description: URL-friendly post identifier.
        title:
          type: string
          description: Post title.
        excerpt:
          type: string
          description: Short summary of the post.
        featuredImage:
          type: string
          nullable: true
          description: Featured image URL (800x600), or null.
        author:
          type: object
          description: The post's author.
          properties:
            name:
              type: string
              description: Author name.
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp.
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp.
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT

````