latestOpenAPI 3.1.02026-08-211,0251,3542.1 MB

b9cc757ca795

ALERTS_V1

Preview Playground Report

Preview what a playground report would look like.

Regenerates the session through the same ask pipeline a scheduled run uses, so the preview shows the content the next delivery would carry — it costs an LLM run and appends a new assistant turn to the session, but nothing is delivered and no run is recorded. Blocks for the length of that run.

Distinct from /preview because playground reports have no metric_config and need no ClickHouse access.

post/api/v1/alerts/preview/playground-report

Request body

session_idstring required
content_scopestring

first_query | last_answer | full_chat

report_namestring 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

Successful Response

session_idstring required
content_scopestring required
contentstring required

Report body as markdown

htmlstring required

Rendered email HTML

subjectstring required
first_questionstring nullable
playground_urlstring required
generated_atstring date-time required
is_emptyboolean required