List a directory in a session's sandbox
Stats a path under /workspace (symlinks resolved; a link that leads outside /workspace is a 400) and, for a directory, lists its entries (name and type, at most 1000). Allowed while the session is ready.
curl --request GET \
--url https://api.veri.studio/v1/sessions/{session_id}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/files"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"path": "<string>",
"type": "<string>",
"object": "<string>",
"size": 123,
"entries": [
{
"name": "<string>",
"type": "<string>"
}
],
"truncated": true
}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 path and, for a directory, its entries
O11: what a path in /workspace is (GET /v1/sessions/{id}/files):
symlinks resolved; a directory carries its immediate entries.
The resolved path (symlinks followed; always under /workspace).
file | directory | symlink | ...
Bytes, for a file.
A directory's entries, sorted by name (at most 1000).
Show child attributes
Show child attributes
More than 1000 entries: the rest were left out.
curl --request GET \
--url https://api.veri.studio/v1/sessions/{session_id}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/files"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"path": "<string>",
"type": "<string>",
"object": "<string>",
"size": 123,
"entries": [
{
"name": "<string>",
"type": "<string>"
}
],
"truncated": true
}
