cURL
curl --request GET \ --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/pty/{session_id} \ --header 'Authorization: Bearer <token>'
{ "session_id": "<string>", "pid": 123, "command": "<string>", "args": [ "<string>" ], "rows": 123, "cols": 123, "created_at": 123, "is_alive": true, "ended_at": 123, "exit_code": 123 }
Retrieve metadata for a single PTY session.
GET /api/v1/pty/{session_id}
curl https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/pty/<session-id> \ -H "Authorization: Bearer $TENSORLAKE_API_KEY"
200 OK
{ "session_id": "LYtJOrxE9Kz3bphPUDzuX", "pid": 42, "command": "/bin/bash", "args": ["-l"], "rows": 24, "cols": 80, "created_at": 1710000000000, "ended_at": null, "exit_code": null, "is_alive": true }
404 Not Found
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The PTY session identifier.
PTY session metadata
Was this page helpful?