8.1.5. Download Sanitized Files
Download Sanitized Files Using Data Id
Request |
Value |
Method |
GET |
URL |
/file/converted/{data_id} |
The data_id comes from the result of 8.1.3.1. Process a file. In case of sanitizing the content of an archive, the data_id of contained file can be found in 8.1.3.2. Fetch processing result.
Request HTTP header parameters:
name |
type |
required |
value |
apikey |
string |
false |
Session id, can be acquired by Login / Create a Session If API key was set on 8.1.3.1. Process a file then it is required |
When a user's apikey was used for scanning a file, it is necessary to set an apikey which belongs to the same user to access the sanitized files.
Successful response
HTTP status code: 200
Raw file data
Error response
Invalid data id
HTTP status code: 404
{
"err"
:
"File could not be found"
}
Internal error
HTTP status code: 404
{
"err"
:
"<error message>"
}
Invalid api key or rights
HTTP status code: 405
{
"err"
:
"Access denied"
}
Unexpected event on server
HTTP status code: 500
{
"err"
:
"<error message>"
}
Note: Check Metadefender Core server logs for more information.