---
title: "Previews"
method: POST
path: "/companies/{company_id}/templates/{template_id}/previews"
tags: ["creatives"]
---

# Previews

`POST /companies/{company_id}/templates/{template_id}/previews`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/templates/{template_id}/previews`
- Auth: none declared

The draft drawn for several products at once (decision 165): the editor's grid.

Each as the preview draws one, with its touch-ups, in one format, and how
many problems the checks find with it, so the grid can say which need a
look. In the order asked; a product that does not exist is left out.

## Path parameters

- `company_id` string, uuid, required: Company id
- `template_id` string, uuid, required

## Query parameters

- `at` string, date-time, nullable: draw as at this moment, with a time zone; now when left out
- `theme` string, nullable: none, scheduled (the default: the company's theme now) or a theme's id

## Request body

- TemplatePreviewsRequest: The draft for several products at once: the editor's grid (decision 165).
  - `document` object, nullable
  - `product_ids` string[], required
  - `format` string
  - `variant` string

## Response `200`

Successful Response

- TemplatePreviewsOut
  - `items` TemplatePreviewItemOut[], required
    - `product_id` string, uuid, required
    - `external_id` string, required
    - `title` string, nullable, required
    - `svg` string, required
    - `problems` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
