8.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):


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: