---
title: "Pinned examples"
method: GET
path: "/api/gallery/promo"
tags: ["Gallery"]
---

# Pinned examples

`GET /api/gallery/promo`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/gallery/promo`
- Auth: none required

BrewPage's own example publications shown above and below the public gallery: captions, the current period, a default set of slugs for the top and bottom blocks (also the block shape), and every live item with its weight. Clients draw the cards by weight on every page load. Empty slots and items when no example is configured.

## Response `200`

Example blocks of the current period

- GalleryPromoResponse: BrewPage examples shown above and below the public gallery; clients draw the cards by item weight
  - `sectionUrl` string: Page listing every template
  - `captions` GalleryPromoCaptions
    - `top` string: Caption of the block above the gallery
    - `bottom` string: Caption of the block below the gallery
  - `period` GalleryPromoPeriod
    - `index` integer: Period number; the answer is the same for every client within one period
    - `endsAt` string, date-time: When the next period starts
  - `slots` GalleryPromoSlots: This period's default set and the block shape: cards per block and the slot that holds a video
    - `top` string[]: Slugs of the top block in card order; phones show the first
    - `bottom` string[]: Slugs of the bottom block in card order; phones show the first
  - `items` GalleryPromoItem[]: Every live item in registry order; slots name items by slug
    - `kind` 'template' | 'video': Item kind
    - `slug` string
    - `title` string
    - `id` string: Publication id in the public namespace
    - `namespace` string
    - `tier` 'basic' | 'more', nullable: kind=template: 'basic' or 'more'; absent for video
    - `chips` string[]: Feature chips: 'page-data', 'custom-domain', 'api', 'file-uploads', 'comments', 'lambda'; empty for video
    - `pageUrl` string, nullable: kind=template: its template page; absent for video
    - `sourceUrl` string, nullable: kind=template: its clean source as plain text; absent for video
    - `link` string: Live address of the publication
    - `views` integer: Total view count
    - `comments` integer: Comments on the publication, deleted ones excluded; 0 when none
    - `copies` integer, nullable: kind=template: pages published as copies of this template; absent for video
    - `preview` PublicationPreviewResponse, nullable: WebP previews: thumbD 800x373, thumbM 320x149, full: page top (pages, sites) or the 1200 px card
      - `thumbD` string, required
      - `thumbM` string, required
      - `full` string
      - `branded` boolean: true = type card, not a page or content render; absent when false
    - `mediaUrl` string, nullable: kind=video: the playable file; absent otherwise
    - `durationSeconds` integer, nullable: kind=video: length in seconds; absent otherwise
    - `weight` integer: Relative chance of being shown; clients draw cards by it
    - `isNew` boolean

## Changes

- **2026-11-28** `dac5983bec77`: 1 info
  - added the optional property `items/items/comments` to the response with the `200` status
- **2026-11-16** `951bfde74e26`: 1 info
  - added the optional property `items/items/copies` to the response with the `200` status
- **2026-11-15** `f1dfc7339264`: 1 info
  - added the optional property `items/items/weight` to the response with the `200` status
- **2026-11-11** `957711dab4b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/gallery/promo/get.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
