Exports a previously saved query report as a downloadable file in the specified format (PDF or CSV). The report is looked up by its ID, the associated SQL query is executed, and the result is downloaded as a file.
get /dcapi/reports/queryReports/{id}/export
https://{serverurl}/dcapi/reports/queryReports/{id}/export
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
The unique id retrieved for saved query report
The export file format. Allowed values: pdf, csv. Defaults to pdf if not specified
curl --request GET \
--url https://appdomains/dcapi/reports/queryReports/{id}/export \
--header 'Accept: application/octet-stream' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'Error code for invalid export request. INVALID_QUERY = the requested export format is not supported (only pdf and csv are allowed)
Human-readable message describing why the export request failed. Example: Un-Supported format
Error code for unauthorized access. REPORT_UNAUTHORIZED = the specified report ID was not found or the user does not have permission to access it
Human-readable message indicating the user is not authorized to access the specified query report
Error code for server-side failure. INTERNAL_ERROR = an unexpected error occurred during query execution or file generation
Human-readable message describing the internal server error encountered during the export process
200 OKExport format is not pdf or csv
{
"errorMessage": "Un-Supported format",
"errorCode": "INVALID_QUERY"
}
Report ID does not exist or user does not have permission
{
"errorMessage": "You are not authorized to access this report",
"errorCode": "REPORT_UNAUTHORIZED"
}
Unexpected error during query execution or file generation
{
"errorMessage": "An internal server error occurred while exporting the query report",
"errorCode": "INTERNAL_ERROR"
}
![]()
Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.