Create a PTY session
PTY Sessions
Create PTY Session
Create a PTY-backed interactive terminal session through the sandbox proxy.
POST
Create a PTY session
Create a PTY session for interactive terminal access.
Use this endpoint on the sandbox proxy host:
Use
Endpoint
Example Request
Request Body
commandis required.argsis optional.envis optional.working_diris optional.rowsandcolsare optional and default to24and80.- Tensorlake clamps
rowsto1..500andcolsto1..1000.
Response
Tensorlake returns201 Created:
session_id with the other PTY endpoints. Use token when connecting to the PTY WebSocket.
If the sandbox already has 64 PTY sessions, Tensorlake returns 429 Too Many Requests with code TOO_MANY_SESSIONS.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json