7.2. MetaDefender API Code Samples

OPSWAT provides some sample codes on GitHub to make it easier to understand how the MetaDefender REST API works.

Also, you can import the MetaDefender Postman Collection, which will give you quick access to the API. After you import it, please update the URL for MetaDefender and the credentials (MetaDefender Core collection → Edit → Variables):

images/download/attachments/32847665/image2019-3-27_10-29-52.png

Please note that the requests are chained, so you can use the Runner to run the tests and to see the analysis flow and the requests headers and response:

images/download/attachments/32847665/image2019-3-27_10-32-29.png