Downloads a file from the VM’s file system. Use this to retrieve files created or modified during agent tasks.
Replace VM_API_IP:PORT with the actual IP and port of the VM’s Desktop Environment API server.
Request Body
Full path to the file in the VM’s file system
Response
Returns binary file content. Save the response directly to a local file.
Binary content of the requested file
curl -X POST "http://VM_API_IP:PORT/file" \
-H "Content-Type: application/json" \
-d '{"path": "/home/user/Documents/Final_Report.docx"}' \
--output Final_Report.docx
[Binary file content - save to file]