Files
Get preview info for a file
Changed onReturns a presigned URL to the PDF preview of the current version of the specified file. The URL is valid for 1 day from the time of the request.
This endpoint never creates a preview. Use CreatePreview to request one; while the conversion is still pending this endpoint returns 404.
get/matters/{matterId}/documents/files/{fileId}/preview
Request
- Base URLhttps://api.smokeball.com
- URLhttps://api.smokeball.com/matters/{matterId}/documents/files/{fileId}/preview
- AuthAPI key in header x-api-key and API key in header Authorization
Path parameters
matterIdstring required
Unique identifier of the matter to which the file belongs.
fileIdstring required
Unique identifier of the file.
Response
When the request is successful. Returns a 'PreviewFileInfo' object.
Example response
{
"fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"documentVersionId": "0f8fad5b-d9cb-469f-a165-70867728950e",
"downloadUrl": "https://bucket.s3.amazonaws.com/previews/accounts/b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2/documents/0f8fad5b-d9cb-469f-a165-70867728950e?X-Amz-Expires=86400&X-Amz-Signature=...",
"expiry": "2022-04-23T14:30:00Z"
}Changes
- info
added the optional property
to the response with the status
- info