Reports
Export Report
Export a report to an Excel, CSV or JSON file.
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive
403 mcp_not_enabled. See the preview overview.report_export operation. The file is the one the report’s Download menu produces in the app: one row per document and one column per question.
The export holds the cells as they are when it is built. To export a complete grid, wait for any run to finish first. A report with more than 250,000 cells (rows × columns) is too large to export here; download it from the app.
When the operation succeeds, download the file with Get File Download. See Long-running operations for how to wait. An export cannot be cancelled.
Authentication
Requires an API key, or an OAuth token withreports:write. Downloading the file needs files:read. The caller needs read access to the report and permission to upload files.
Path parameters
string
required
The report id.
Headers
string
A unique string for this request, such as a UUID. A repeat with the same key within 30 days returns the same operation with
200 instead of starting a second export.Body parameters
string
default:"xlsx"
The file format:
xlsx, csv or json.integer
default:"0"
Seconds to wait for the export to finish before responding, from
0 to 20. Most exports finish within this time.string
An HTTPS URL that receives a signed POST with the operation when it reaches a terminal state. API keys only.
Response
Returns202 with the operation. Its type is report_export and its resource is the report. When it succeeds, result holds { "file_id" }: the exported file.
If the export finishes within wait, the response is still 202, and the operation is already succeeded.
Errors
An export of a report that is too large ends as
failed with error.code report_too_large. Any other failure ends with export_failed, which is retryable.