Generate Report
Generate a downloadable report (e.g. US payroll employees) for a company. Returns the file bytes base64-encoded plus its filename and content type, so CSV and binary XLSX flow through the typed API uniformly. This is the self-serve admin surface; Ops/Retool use the equivalent token-gated endpoint which produces identical output.
Authentication
X-Thera-API-Keystring
API Key authentication via header
Path parameters
companyId
Query parameters
reportType
Which report to generate.
Allowed values:
format
Output file format.
Allowed values:
includeTerminated
If true, include terminated employees. The Status column is always present in every row regardless of this flag.
Response
This endpoint returns an object.
filename
contentType
base64Content
The report file bytes, base64-encoded. Decode to a Blob using contentType and download using filename.

