Session ops
Download a file from a session's sandbox
Returns one regular file under /workspace as application/octet-stream (at most 32 MiB; 413 above). Symlinks are resolved and the target must stay under /workspace. Allowed while the session is ready. Recorded as session.file_read (path and size).
GET
/
v1
/
sessions
/
{session_id}
/
files
/
content
Download a file from a session's sandbox
curl --request GET \
--url https://api.veri.studio/v1/sessions/{session_id}/files/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/files/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/files/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
1
]Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Session ID
Query Parameters
Absolute path under /workspace (listing default: /workspace). Other
query parameters (list=1) are accepted and ignored: a directory is
always listed.
Response
The file's bytes
Required range:
x >= 0Download a file from a session's sandbox
curl --request GET \
--url https://api.veri.studio/v1/sessions/{session_id}/files/content \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/files/content"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/files/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
1
]
