Get File
Returns file metadata and, for clean-scanned files, a short-lived presigned download URL scoped to the owning sales channel. Files that are still scanning or quarantined are not downloadable.
Authentication
x-truemed-api-keystring
Sales channel API key for merchant server-to-server authentication
Path parameters
file_id
The public file identifier.
Response
Successful response
content_type
The file’s MIME type, e.g. application/pdf.
download_url
Short-lived presigned download URL (5 minutes). Always present in a 200 response; non-clean files return 409 rather than a 200 with this field absent.
file_id
The public file identifier.
filename
The stored filename.
scan_status
Malware-scan status. Downloads are only available once the file is clean.
Allowed values:
size_bytes
The file size in bytes.
Errors
400
Bad Request Error
404
Not Found Error
405
Method Not Allowed Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error