Narratives API
The Narratives API generates board-ready narrative documents using Claude. It assembles data from across the PILLAR platform, constructs a structured prompt with pre-computed KPIs, and returns a multi-section narrative with prose content, data points, and severity indicators.POST /api/narratives/generate
Generates a new board narrative and persists it to the database.
Auth: Requires authenticated session. Scoped to organization.
Request Body
Valid narrativeType Values
Valid tone Values
Response
Response Fields: narrative
Response Fields: sections[]
Data Point Trends
Side Effects
- Assembles a complete data bundle from accounts, renewals, signals, plays, territories, org metrics, and blueprint assessments
- Calls the Anthropic Claude API to generate narrative content
- Saves the narrative with the full data snapshot for auditability
Error Handling
See the Board Narratives data model page for full details on narrative types, data assembly, and the pre-computed KPI system.