Get download url for a file
Changed onReturns a presigned download URL for the current version of the file, or for a specific version when 'versionId' is supplied. The URL is valid for 1 hour. The response 'Content-Disposition' uses the file name and extension.
Request
- Base URLhttps://api.smokeball.com
- URLhttps://api.smokeball.com/matters/{matterId}/documents/files/{fileId}/download
- AuthAPI key in header x-api-key and API key in header Authorization
Path parameters
Unique identifier (GUID) of the matter.
Unique identifier (GUID) of the file.
Query parameters
Optional. Unique identifier of the file version to download. Must be a version of this file. Defaults to the current version.
Response
When request is successful. Returns a 'DownloadFileInfo' object.
Example response
{
"fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"name": "court filing",
"fileExtension": ".pdf",
"downloadUrl": "https://example-bucket.s3.amazonaws.com/files/2f1c9a3e-6b1d-4c7e-9a0f-1d2e3f4a5b6c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...",
"expiry": "2022-04-23T14:30:00Z",
"sizeBytes": 19104768
}Changes
- breaking
the response's body type changed from
objecttostringfor status - breaking
the response's body type changed from
objecttostringfor status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- breaking