Get a download URL for a file document's native file
GET
/api/v1/documents/{canonicalId}/native-file/download-url
const url = 'https://app.avera.io/api/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/native-file/download-url?expirationSeconds=3600';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.avera.io/api/v1/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/native-file/download-url?expirationSeconds=3600'Like the file download URL, but for the native source file stored beside the servable one. Fails when the document carries no native file or the scan has not cleared it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”canonicalId
required
string format: uuid
Query Parameters
Section titled “Query Parameters”expirationSeconds
integer format: int32
Responses
Section titled “Responses”OK
Media type*/*
object
downloadUrl
required
string
fileName
required
string
contentType
required
string
fileSize
required
integer format: int64
expiresAt
required
string