API Reference: Reports
List Reports, retrieve their configuration, and trigger refreshes.
Overview
The Reports API manages saved reports end to end: create and configure a report, trigger refreshes, read computed rows, export them, share reports, and manage snapshots and schedules. Legacy Reports use one base Collection plus joins. Normalized Team Reports compose independently filtered source Collections into one explicit logical field shape and materialize source-record or report-scoped identity rows.
Personal Reports require REPORTS_PERSONAL; Team Reports require ADMIN_TEAM_REPORTS. Mutations require edit-level access to the feature matching the report type. Creating a report uses the requested type (default PERSONAL_REPORT); copying requires read access to the source and edit access to the copy's type. Every identifier on the wire is a public simplyId (CHAR-14 code such as REPT-1234-ABCD).
Key Concepts
- Report configuration — A base collection (
reportBaseDataCollectionSimplyId) plus join paths, report fields, filters, and sort order. Fully editable through the API. - Semantic definition — A complete versioned Team Report definition with ordered sources, source-local joins and filters, logical fields, typed mappings, output grain, optional identity rules, and logical Report-field filters. Updates use
expectedRevisionand replace the definition atomically. - Refresh —
POST .../refreshqueues a backend job that recomputes the report's data set and returns202immediately.POST .../runis an alias for the same operation. - Report data — Available from
GET .../dataonce the last refresh finished successfully; before that the endpoint returns an empty result set. - Snapshot — A stored export of a report run, created manually or on a schedule, downloadable via a presigned URL.
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v1/reports | List saved reports. |
POST | /v1/reports | Create a report. |
POST | /v1/reports/semantic | Create a normalized Team Report and its complete initial definition atomically. |
GET | /v1/reports/{reportSimplyId} | Get a report definition. |
PUT | /v1/reports/{reportSimplyId} | Update a report. |
GET / PUT | /v1/reports/{reportSimplyId}/definition | Read or revision-check and replace the complete semantic definition. |
GET | /v1/reports/{reportSimplyId}/materialization | Read current refresh, immutable definition-version, and quality metadata. |
GET | /v1/reports/{reportSimplyId}/materializations | List bounded materialization-run history. |
DELETE | /v1/reports/{reportSimplyId} | Delete a report. |
POST | /v1/reports/{reportSimplyId}/refresh | Queue an on-demand refresh. |
POST | /v1/reports/{reportSimplyId}/run | Alias for refresh. |
POST | /v1/reports/{reportSimplyId}/copy | Create a personal copy of a report. |
GET | /v1/reports/{reportSimplyId}/data | Read computed report rows. A JSON-encoded actionTagAttribution query filters refreshed detail rows by their base-record audit evidence. |
GET | /v1/reports/{reportSimplyId}/export | Export report data as a file, with the same optional Action-attribution filter as report data. |
POST / PUT / DELETE | /v1/reports/{reportSimplyId}/join-paths[...] | Add, update, reorder, and delete join paths. |
POST / PUT / DELETE | /v1/reports/{reportSimplyId}/fields[...] | Add, update, reorder, and delete report fields. |
GET / POST / DELETE | /v1/reports/{reportSimplyId}/shares[...] | List, create, and remove report shares. |
GET / POST / DELETE | /v1/reports/{reportSimplyId}/snapshots[...] | List, trigger, get, delete, and download snapshots. |
GET / POST / PUT / DELETE | /v1/reports/{reportSimplyId}/snapshot-schedules[...] | Manage recurring snapshot schedules. |
Action-attributed report audiences require ordinary report/field access plus Action-view permission. Refresh the report before filtering so its generated table contains the base-record lineage column. Aggregate-only rows do not have a unique base record and are excluded; the server never guesses lineage from names or user-authored SQL.
List Reports
Supports limit (default 100, max 500), offset, and an optional ownerTeamUserLinkSimplyId filter.
The list includes only report types allowed by the caller's effective Team feature grants: personal reports for REPORTS_PERSONAL and Team Reports for ADMIN_TEAM_REPORTS. Ownership or a share is also required to see a personal report unless the caller is a Team or System Administrator acting within the Team's feature cap. Source-data checks can remove reports from the result. The pagination total is counted after these feature, object, and source filters.
const reports = await s360.reports.list();
for (const report of reports.data) {
console.log(`${report.reportSimplyId}: ${report.singularName}`);
}
curl -s "https://api.simply360.app/v1/reports?limit=50" \
-H "Authorization: Bearer $S360_API_KEY"
Get Report Configuration
const report = await s360.reports.get('REPT-1234-ABCD');
console.log(report.data);
curl -s "https://api.simply360.app/v1/reports/REPT-1234-ABCD" \
-H "Authorization: Bearer $S360_API_KEY"
Create a Report
Requires singularName and reportBaseDataCollectionSimplyId. Optional fields include pluralName and enumDataCollectionTypeId (PERSONAL_REPORT or TEAM_REPORT).
curl -s -X POST "https://api.simply360.app/v1/reports" \
-H "Authorization: Bearer $S360_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"singularName": "Lapsed Donor",
"pluralName": "Lapsed Donors",
"reportBaseDataCollectionSimplyId": "COLL-1234-ABCD",
"enumDataCollectionTypeId": "TEAM_REPORT"
}'
After creating a report, add join paths (s360.reports.addJoinPath) and fields (s360.reports.addField). Join-path creation takes dataFieldSimplyId, fromDataCollectionSimplyId, and toDataCollectionSimplyId, with optional parentReportJoinPathSimplyId, joinType (LEFT, INNER, NOT_EXISTS), and multiRecordHandling (EXPLODE or ROLLUP).
Create and Update a Semantic Report
s360.reports.createNormalized(...) creates a TEAM_REPORT with one complete mutation. New logical fields and joins use request-local clientRef values; mappings refer to those values with the matching *ClientRef property. The server allocates their public Simply IDs inside the transaction and returns the canonical definition. Local refs are not persisted identities.
Read with s360.reports.getDefinition(reportSimplyId). Save with s360.reports.updateDefinition(reportSimplyId, { expectedRevision, mutation }). The mutation must include every active source, join, logical field, and mapping. A stale revision returns 409; reload and deliberately reapply the edit. Partial field/join endpoints are for legacy definitions and fail closed for normalized Reports.
Normalized output grain supports SOURCE_RECORD and IDENTITY. AGGREGATE remains available to legacy Reports but is rejected for normalized mutation until the typed grouping contract exists. Typed mappings never accept SQL, physical identifiers, or UNION fragments.
getMaterializationStatus and listMaterializationHistory return public run/version Simply IDs, status and timing, per-source counts, row count, same-record and identity removals, null and ambiguous identity counts, lineage/row-limit truncation, exactness, and a bounded error summary. They do not expose internal IDs or generated SQL.
MCP and Ask Simply
Hosted and in-process MCP expose get_report_definition, get_report_data, get_report_materialization_status, and list_report_materialization_history, plus the simply360://teams/{teamSimplyId}/reports/{reportSimplyId}/definition resource. Write-enabled MCP and Ask Simply can prepare draft_create_report_definition, draft_update_report_definition, and draft_run_team_report; each remains a complete, approval-gated proposal and rechecks permissions when approved.
Report management is also available to Ask Simply and hosted MCP (direct tools or invoke_capability): list_team_report_shares (READ), draft_share_team_report, draft_remove_team_report_share, draft_delete_team_report_snapshot, and draft_archive_personal_report. Share inspection requires the same edit grant and owner/admin access as the web route. Sharing grants read access only and accepts sharedWithTeamUserSimplyId, the recipient's active Team User membership Simply ID, never a global User Simply ID. Team reports return no shares and cannot be shared.
Each draft makes no changes until approval, which resolves the report again in the approver's current Team and rechecks the report-type edit grant, ownership, recipient, and share/snapshot scope. A shared viewer cannot manage shares or delete snapshots. Personal-report archive proposals require the current owner at both draft and approval, including when the actor is an admin; the existing web/API admin behavior is unchanged. Archive uses the API's report removal/trash service and refuses direct schema writes on production-managed Teams with the same Environment Promotion reason. Shares and snapshot deletion retain the web routes' existing managed-Team behavior. The portable REPORT change-set resource remains limited to Team reports; it does not transfer personal ownership or shares.
Billing impact: These metadata access and removal operations do not generate exports, run reports, schedule deliveries, send email, or change billable usage, entitlements, allowances, spend caps, or pricing. Existing API and SDK methods already cover the same effects. Cost allocation: The tools reuse the existing Team-scoped API/database and agent/MCP proposal paths; no new usage producer, provider call, meter, or receipt file is introduced.
Run a Report
Queues an asynchronous refresh of the report's data. The endpoint responds 202 with a PENDING status; poll the report definition or read /data once the refresh completes. If a refresh is already in progress the endpoint returns 409 CONFLICT.
const status = await s360.reports.run('REPT-1234-ABCD'); // or s360.reports.refresh(...)
console.log(`Status: ${status.data.refreshStatus}`); // "PENDING"
curl -s -X POST "https://api.simply360.app/v1/reports/REPT-1234-ABCD/run" \
-H "Authorization: Bearer $S360_API_KEY"
Read Report Data
GET .../data accepts page, pageSize, sort, sortDir (ASC/DESC), and dataFilterState (JSON-encoded filter state). The response contains rows, columns, and paging meta. Until the report's last refresh succeeded, the endpoint returns an empty row set.
const data = await s360.reports.getData('REPT-1234-ABCD', { page: 1, pageSize: 100 });
console.log(data.data.meta.total);
Export Report Data
GET .../export?format=csv streams the export file (Content-Disposition: attachment). The format parameter accepts csv (default) or xlsx for a formatted Excel workbook. Exporting before a successful refresh returns 409 REPORT_DATA_NOT_READY.
curl -s -OJ "https://api.simply360.app/v1/reports/REPT-1234-ABCD/export?format=csv" \
-H "Authorization: Bearer $S360_API_KEY"
# Excel export
curl -s -OJ "https://api.simply360.app/v1/reports/REPT-1234-ABCD/export?format=xlsx" \
-H "Authorization: Bearer $S360_API_KEY"
Shares, Snapshots, and Schedules
- Shares —
s360.reports.listShares/createShare/deleteSharegrant other team users access to a report. - Snapshots —
s360.reports.listSnapshots/triggerSnapshot/getSnapshot/deleteSnapshot;getSnapshotDownloadUrlreturns a presigned URL for the snapshot's export file. - Snapshot schedules —
s360.reports.listSnapshotSchedules/createSnapshotSchedule/updateSnapshotSchedule/deleteSnapshotScheduleautomate recurring snapshots.
Usage Notes
- Personal Reports require
REPORTS_PERSONAL; Team Reports requireADMIN_TEAM_REPORTS. Create, update, delete, copy, refresh, share, and schedule mutations require the matching edit grant. Sharing a personal report grants read access only; its owner or a current Team/System Administrator with the personal edit grant can change it. - Normalized Reports use source-inherited authorization. Definition, data, refresh, export, snapshot, SDK, MCP, TeamAgent, and dashboard-stat operations also require current read access to every source Collection and referenced field.
- Copying a normalized Team Report deep-copies its complete definition and allocates fresh Report-owned Simply IDs.
runandrefreshare the same operation. Calling either during an in-flight refresh returns409 CONFLICT— wait for the current run to finish and retry.- Copying a legacy report produces a personal copy and requires
REPORTS_PERSONALedit in addition to source read. Copying a normalized Team Report produces a Team Report copy and requiresADMIN_TEAM_REPORTSedit. Copying requires an authenticated team-user context so the copy can be attributed. - Refreshed report output can also be inspected in the Simply360 dashboard.