Retrieve a generated document.
Changed onDownload a generated document using a unique render ID. This render ID is obtained from a successful call to the POST /render/{templateId-or-versionId} endpoint. The retrieved document is provided as a file stream, which can be directly downloaded or viewed.
Features
- Document Retrieval: Access generated documents using a unique render ID, ensuring secure and direct retrieval.
- Single-Use Access: The document is deleted immediately after retrieval, ensuring privacy and reducing server storage usage. Subsequent calls with the same render ID will result in a 404 error, as the document is no longer available.
Authentication
No authentication header is required for this API call, simplifying integration and access for end-users.
Request
- Base URLhttps://api.carbone.io
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of the report
Query parameters
If set to true, changes Content-Disposition from inline to attachment, for direct download.
Headers
Optional for this endpoint: the Authorization and carbone-version headers are not required to download a generated document.
Response
Stream of the generated document. The content type will correspond to the format of the generated document, which can be any of the supported output file formats.
Changes
- info
the
headerrequest parametercarbone-versionbecame optional - info
for the
headerrequest parametercarbone-version, the type was generalized fromintegertostring, and format fromint32to no format - info
removed the non-success response with the status
- info
added the optional property
to the response with the status
- info
- info
added the media type
image/webpfor the response with the status
- info