Skip to main content
POST
Exports a report to a new file in your private space and returns a 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 with reports: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. An API key signs it with its webhook secret. For an OAuth app, the response carries the callback_secret that signs it. See Callbacks for OAuth apps.

Query parameters

boolean
default:"false"
true answers an operation that is still queued or running with 202 Accepted, a Location header and a Retry-After header in seconds. Location is the operation’s Get operation URL, with respond_async=true. Poll it until the response is not 202; that response is the finished operation. A succeeded operation is a 200. A failed or cancelled one is a 422 with the operation as its body, so an automation’s step fails instead of passing on a result that is not there. Power Automate and Logic Apps follow this pattern by themselves. Pass true to turn it on. A value that is not a boolean is a 400, and a call that starts work then starts nothing.

Response

Returns 202 with the operation. Its type is report_export and its resource is the report. When it succeeds, result holds { "file_id" }: the exported file. With respond_async=true, the status code follows the operation’s status instead, as the respond_async query parameter above describes. 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.