---
title: "Preview a theme with staged edits applied"
method: GET
path: "/appearance/themes/{code}/sections/preview"
tags: ["Admin Appearance: Sections"]
---

# Preview a theme with staged edits applied

`GET /appearance/themes/{code}/sections/preview`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/appearance/themes/{code}/sections/preview`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/appearance/themes/:code/sections/preview/get.ts> (a function with typed inputs; its response is checked against the schema)

The sections a channel would draw if the staged edits were published: draft options replace published ones, draft status and order are applied, sections switched off are left out, and footer links stay last.

## Path parameters

- `code` string, required

## Query parameters

- `channel` integer
- `locale` string

## Response `200`

The drafted sections.

## Other responses

- `404`: Theme not installed.

## Changes

- **2026-08-26** `a34d6835b19b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bagisto/apis/bagisto-admin-api/changes/appearance/themes/:code/sections/preview/get.md)

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
