---
title: "Preview Public Flow Presentation"
method: POST
path: "/v2/public/documents/presentations/{presentation_id}/previews"
tags: ["presentations"]
---

# Preview Public Flow Presentation

`POST /v2/public/documents/presentations/{presentation_id}/previews`

## Request

- Base URL: `https://api.sanka.com`
- URL: `https://api.sanka.com/v2/public/documents/presentations/{presentation_id}/previews`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sankahq/apis/sanka-public-api/docs/v2/public/documents/presentations/:presentation_id/previews/post.ts> (a function with typed inputs; its response is checked against the schema)

Slide images (base64) with each slide's fit; overflow means the content did not fit.

## Path parameters

- `presentation_id` string, required

## Query parameters

- `workspace_id` string, nullable

## Headers

- `X-Workspace-Code` string

## Request body

- PresentationPreviewRequest
  - `slideIds` string[], nullable: Slides to preview (up to 12); omit for the first 12 visible slides.
  - `width` 640 | 960 | 1280: Image width in px.
  - `format` 'jpeg' | 'png'

## Response `200`

Successful Response

- PreviewPublicPresentation200Envelope
  - `success` true, required
  - `data` PresentationPreviewData, required
    - `revision` integer, required
    - `slides` PresentationPreviewSlide[], required
      - `slideId` string, required
      - `index` integer, required: 0-based position in the deck.
      - `image` PresentationPreviewImage, required
        - `contentType` string, required
        - `base64` string, required
      - `fit` PresentationSlideFit, required
        - `scale` number
        - `overflow` PresentationFitOverflow
          - `blockIds` string[]
          - `overflowPx` number
        - `frames` PresentationFrameFit[], nullable: Free slides: each box's own fit scale and overflow.
          - `blockId` string, required
          - `scale` number
          - `overflowPx` number
    - `warnings` object[]
  - `meta` EnvelopeMeta, required
    - `ctx_id` string, required
    - `pagination` PaginationMeta
      - `page` integer, required
      - `page_size` integer, required
      - `total` integer, required
      - `next_cursor` string, nullable
    - `toast` ToastMessage
      - `variant` 'success' | 'error' | 'info' | 'warning', required
      - `code` string, required
      - `message` string, required
      - `i18n` ToastMessageI18n, required
        - `en` string, required
        - `ja` string, required

## Other responses

- `401`: Error response
- `403`: Error response
- `422`: Error response

## Changes

- **2026-10-18** `cadc7ef65a04`: 1 info
  - added the optional property `data/slides/items/fit/frames` to the response with the `200` status
- **2026-10-09** `6224f51f9e33`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sankahq/apis/sanka-public-api/changes/v2/public/documents/presentations/:presentation_id/previews/post.md)

---

[API](https://skmtc.dev/sankahq/apis/sanka-public-api.md) - [All operations](https://skmtc.dev/sankahq/apis/sanka-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sankahq/apis/sanka-public-api/revisions/16f03a9e3ab9?raw)
