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

promptstringrequired
period_startstring · date
period_endstring · date
slide_typesarray · string

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

titlestring

Responses

201Successful Response

successboolean
messagestring
codestring
dataGenerateDeckResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject