Skip to main content
GET
Get a PTY session
Get metadata for one PTY session.

Endpoint

Example Request

Response

Tensorlake returns 200 OK:
The PTY token is not returned from this endpoint. If the kernel OOM killer terminated the PTY process, the response includes oom_killed: true. If the session does not exist, Tensorlake returns 404 Not Found.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

The PTY session identifier.

Response

PTY session metadata

session_id
string
required
pid
integer<int32>
required
command
string
required
args
string[]
required
rows
integer<int32>
required
cols
integer<int32>
required
created_at
integer<int64>
required
is_alive
boolean
required
ended_at
integer<int64> | null
exit_code
integer<int32> | null
oom_killed
boolean

Included only when the kernel OOM killer terminated the PTY process.