api: add endpoint to download the plugin