Reports API
Reports are slide-based presentations that combine charts, text, and data visualizations.
List Reports
GET /api/reports?workspace_id={id}
Get Report
GET /api/reports/:reportId
Returns the report with all slides and content.
Create Report
POST /api/reports
| Field | Type | Required | Description |
|---|---|---|---|
report_name |
string | Yes | Report title |
report_description |
string | No | Description |
workspace_id |
integer | No | Workspace ID |
Update Report
PUT /api/reports/:reportId
Delete Report
DELETE /api/reports/:reportId
Slides
Create Slide
POST /api/reports/:reportId/slides
| Field | Type | Description |
|---|---|---|
slide_title |
string | Slide title |
slide_type |
string | Slide type (chart, text, title, etc.) |
slide_content |
object | Slide content and configuration |
Update Slide
PUT /api/reports/:reportId/slides/:slideId
Delete Slide
DELETE /api/reports/:reportId/slides/:slideId
Export
Export as PDF
POST /api/reports/:reportId/export/pdf
Generates a PDF document from the report slides.
Export as PowerPoint
POST /api/reports/:reportId/export/pptx
Generates a PowerPoint (.pptx) file from the report slides.
Both export endpoints return the file data or a download URL.