7.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 7.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 7.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

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.