Generate a new AI deck

POST /api/v1/ai-reporting/decks

Build a new deck from live data + AI commentary and persist it. Returns the full DeckSpec ready to render.

Operation ID: generate_deck_api_v1_ai_reporting_decks_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

prompt string required
period_start string · date
period_end string · date
slide_types array · string

Optional subset of slide types to include. When omitted the service picks a sensible default for board / investor decks.

title string

Responses

201 Successful Response

deck DeckSpec requiredDeckSpec
8 fields
id string required
business_id string required
title string required
period_start string · date
period_end string · date
slides array · CoverSlide | ExecSummarySlide | PnlSummarySlide | ArAgingSlide | CashPositionSlide | InventoryCogsSlide | CustomerConcentrationSlide | AsksSlide | CustomSlideSpec
created_at string · date-time required
theme DeckTheme

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object