Skip to main content

Export a playbook run as an HTML or Markdown report

GET 

/plugins/playbooks/api/v0/runs/:id/report

Renders a report for the given playbook run in the requested format. Sections may be selected via the sections query parameter; omit it for the default set (everything but the transcript). The summary and status updates are always included. The transcript section requires the requester to be a member of the run's channel.

Response is always either a complete report OR a canonical JSON error, never a partial document.

When a server-side cap (post count, byte budget or render timeout) is hit, the response is still 200 with a truncation note; the response also carries X-Playbooks-Report-Truncated: true and X-Playbooks-Report-Truncated-Reason: posts|bytes|timeout.

Request​

Responses​

The report (atomic; full body buffered before any header is sent).

Response Headers
    Content-Disposition

    Always attachment, named <title>_<YYYY-MM-DDTHH-MM>.<format> with the generation time in UTC, with both ASCII (filename=“…”) and UTF-8 (filename*=UTF-8''…) variants per RFC 6266.

    Cache-Control

    Always no-store.

    X-Request-ID

    Correlation ID echoed on success and failure; matches the value used in server-side error logs.

    X-Playbooks-Report-Truncated

    Present only when a cap was hit (transcript posts, byte budget or render timeout); value is true.

    X-Playbooks-Report-Truncated-Reason

    One of posts, bytes or timeout; present only when truncated.