---
title: "Start Playground Report Preview Run"
method: POST
path: "/api/v1/alerts/preview/playground-report/runs"
tags: ["ALERTS_V1"]
---

# Start Playground Report Preview Run

`POST /api/v1/alerts/preview/playground-report/runs`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/alerts/preview/playground-report/runs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Start a report preview in the background and return at once.

The alerts worker generates the report the way the scheduled run would,
keeps it on the session and emails it to the caller only. Poll
``GET /preview/playground-report/runs/{session_id}`` for its state; send
the kept report on with ``POST .../runs/{run_id}/send``. 409 while another
run holds the session.

## Request body

- PlaygroundReportPreviewRequest: Preview a playground report from a Studio session, before/without saving a rule. Regenerates the session through the same ask pipeline a scheduled run uses, then renders the fresh answer — no delivery, and the turns the run appends are discarded once rendered.
  - `session_id` string, required
  - `content_scope` string: first_query | last_answer | full_chat
  - `report_name` string, nullable: The rule's name (or the name typed into an unsaved form). Reaches the subject line, so pass it for the preview to match what a scheduled run would send. Falls back to a placeholder.

## Response `202`

Successful Response

- PlaygroundReportRun: One report run on a Studio session: a Preview or Send preview. ``state`` is ``queued``, ``running``, ``done`` or ``failed``. A run whose worker stopped reads as ``failed``. ``emailed_to`` is set when a background preview was emailed to the person who asked for it.
  - `id` string, required
  - `kind` string, required
  - `state` string, required
  - `started_at` string, required
  - `finished_at` string, nullable
  - `error` string, nullable
  - `report_name` string, nullable
  - `content_scope` string, nullable
  - `emailed_to` string, nullable
  - `email_error` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `77a7dface13f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/myaltimate/apis/fastapi/changes/api/v1/alerts/preview/playground-report/runs/post.md)

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) - [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/fastapi/revisions/727657ce54e9?raw)
