Reports & Dashboards API
Build, execute, schedule, and export custom reports across all modules. Query the entity schema for report builder integrations.
All endpoints prefixed with /api/v1/reports
Create, manage, share, and favorite reports.
/api/v1/reports/reports Create a new report.
Auth: Bearer token
Request Body
{
"name": "Monthly Sales Summary",
"appModule": "sales",
"definition": {
"entity": "leads",
"fields": ["firstName", "lastName", "status"],
"filters": [],
"groupBy": ["status"]
}
} /api/v1/reports/reports List reports with filtering by app module, favorites, shared, system reports.
Auth: Bearer token
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| appModule | string | Filter by app module (sales, marketing, hr, finance) |
| search | string | Search by name |
| favorites | boolean | Show favorites only |
| shared | boolean | Show shared with me |
| page | number | Page number |
| limit | number | Items per page |
/api/v1/reports/reports/:id Get report by ID with full definition.
Auth: Bearer token
/api/v1/reports/reports/:id Update a report.
Auth: Bearer token
/api/v1/reports/reports/:id Delete a report.
Auth: Bearer token
/api/v1/reports/reports/:id/duplicate Duplicate a report.
Auth: Bearer token
/api/v1/reports/reports/:id/favorite Toggle favorite status for a report.
Auth: Bearer token
/api/v1/reports/reports/:id/share Share report with other users.
Auth: Bearer token
Request Body
{
"userIds": [2, 5]
} /api/v1/reports/reports/:id/shares Get list of users a report is shared with.
Auth: Bearer token
Execute reports and view execution history.
/api/v1/reports/executions/preview Preview a report execution with definition and parameters (without saving).
Auth: Bearer token
Request Body
{
"definition": {
"entity": "leads",
"fields": ["firstName", "status"],
"filters": [{ "field": "status", "op": "eq", "value": "new" }]
},
"parameters": {}
} /api/v1/reports/executions/:reportId Execute a saved report and return results.
Auth: Bearer token
/api/v1/reports/executions/:reportId/history Get execution history for a report.
Auth: Bearer token
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | number | Page number |
| limit | number | Items per page |
/api/v1/reports/executions/:executionId Cancel an execution.
Auth: Bearer token
Export report results to CSV, Excel, or PDF.
/api/v1/reports/exports/:reportId/csv Export report results as CSV file.
Auth: Bearer token
/api/v1/reports/exports/:reportId/excel Export report results as XLSX file.
Auth: Bearer token
/api/v1/reports/exports/:reportId/pdf Export report results as PDF file.
Auth: Bearer token
Organize reports into folders.
/api/v1/reports/folders Create a new folder.
Auth: Bearer token
Request Body
{
"name": "Q2 Reports"
} /api/v1/reports/folders List all folders.
Auth: Bearer token
/api/v1/reports/folders/:id Update a folder.
Auth: Bearer token
/api/v1/reports/folders/:id Delete a folder.
Auth: Bearer token
/api/v1/reports/folders/:id/move-report Move a report to a folder.
Auth: Bearer token
Request Body
{
"reportId": 5
} Automated report delivery on a schedule.
/api/v1/reports/schedules Create a schedule for a report.
Auth: Bearer token
Request Body
{
"reportId": 1,
"frequency": "weekly",
"dayOfWeek": 1,
"time": "09:00",
"timezone": "America/New_York",
"recipients": ["manager@company.com"],
"format": "pdf"
} /api/v1/reports/schedules Get schedules for a specific report.
Auth: Bearer token
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| reportId | number | Report ID |
/api/v1/reports/schedules/:id Update a schedule.
Auth: Bearer token
/api/v1/reports/schedules/:id Delete a schedule.
Auth: Bearer token
Explore the data schema for the report builder.
/api/v1/reports/schema/entities List all entities with their fields.
Auth: Bearer token
/api/v1/reports/schema/entities/:id Get a specific entity with its fields.
Auth: Bearer token
/api/v1/reports/schema/entities/:id/fields Get fields for a specific entity.
Auth: Bearer token
/api/v1/reports/schema/relationships Get entity relationships (optionally filtered).
Auth: Bearer token
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| entityId | number | Filter by entity ID |
/api/v1/reports/schema/join-path Compute join path between two entities (for cross-entity reports).
Auth: Bearer token
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| from | string | Source entity name or ID |
| to | string | Target entity name or ID |