Endpoints
POST /api/applications/:foreignId/case-reports
Generates a transaction summary report for a specific disclosure case. The report captures the transaction data within the case’s approved scope — period, disclosure flags, and contract filters — at the time of generation. Required permission:reports:create (auditor bucket)
The application route segment from
GET /auth/me.The ID of the approved case for which to generate the report. The case must belong to the same application and your session must satisfy the case’s assignment and access-window checks.
The type of report to generate. Refer to your portal configuration for supported type values.
GET /api/applications/:foreignId/reports
Lists all reports that have been generated for the application. Results are scoped to your organization and the specific application identified by:foreignId.
Required permission: reports:list (auditor bucket)
The application route segment from
GET /auth/me.GET /api/applications/:foreignId/reports/:reportId/download
Downloads a specific report for the application. This endpoint streams or returns the report file. Downloading is a separate permission from listing — check yourGET /auth/me response for reports:download in the auditor bucket.
Required permission: reports:download (auditor bucket)
The application route segment from
GET /auth/me.The ID of the report to download. Obtain this from the
id field of a report object returned by GET /api/applications/:foreignId/reports or POST /api/applications/:foreignId/case-reports.type of the report.
GET /api/reports
Lists all reports at organization scope. This endpoint is available to organization owners and returns reports across all applications in the organization. Required permission:reports:list (owner-level)
Returns an array of report objects. Each object includes the application_id field so you can identify which application the report belongs to.
GET /api/reports/:reportId/download
Downloads an organization-scoped report. Use this endpoint when you retrieved the report ID fromGET /api/reports rather than from an application-scoped listing.
Required permission: reports:download (owner-level)
The ID of the report to download.
Report generation (
reports:create) and report download (reports:download) are separate permission checks and produce separate activity log events. Your account may have one without the other. Check the auditor bucket in your GET /auth/me response to confirm which permissions apply to you.Report Object Fields
Unique identifier for the report.
The organization the report belongs to.
The internal application ID the report is scoped to. Use
:foreignId in routes rather than this value.The report type (e.g.
"transaction_summary", "activity_log").Structured metadata describing the report content, such as the case ID, period covered, and disclosure flags applied at generation time.
Email address of the user who generated the report.
Display name of the user who generated the report.
ISO 8601 timestamp of when the report was generated.