Download a file as raw bytes
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/file"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/file \
--header 'Authorization: Bearer <token>'"<string>"Files
Download a file as raw bytes
GET
/
v1
/
machines
/
{id}
/
file
Download a file as raw bytes
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/file"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/file \
--header 'Authorization: Bearer <token>'"<string>"Authorizations
API key passed as Bearer token
Path Parameters
Machine ID (e.g. mch_a1b2c3d4)
Query Parameters
File path inside the machine. Absolute paths may target valid machine locations such as /workspace, /data, /tmp, or /context where present. Relative paths resolve from the machine cwd when set, otherwise from the selected user's home when user is provided, otherwise from /workspace.
Optional machine user for relative-path resolution and ownership.
Response
200 - application/octet-stream
File content stream
The response is of type file.