Session ops
Open an interactive shell in a session's sandbox
Returns a single-use WebSocket URL, valid for 60 seconds, that opens a login shell (bash, in a pseudo-terminal) as the sandbox’s agent user in /workspace. veri sessions attach uses it. The shell’s traffic goes through the session’s egress rules. While a shell is attached the session stays awake (and bills); a shell idle for 30 minutes is closed. The runtime records session.attach and session.detach on the transcript. Allowed while the session is ready.
POST
/
v1
/
sessions
/
{session_id}
/
attach-token
Open an interactive shell in a session's sandbox
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/attach-token \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/attach-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/attach-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"ws_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Session ID
Open an interactive shell in a session's sandbox
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/attach-token \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/attach-token"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/sessions/{session_id}/attach-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"ws_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
