Skip to main content
POST
/
api
/
sandboxes
/
{id}
/
pty
/
{sessionID}
/
resize
Resize PTY
curl --request POST \
  --url https://app.opencomputer.dev/api/sandboxes/{id}/pty/{sessionID}/resize \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "cols": 123,
  "rows": 123
}
'
{}
Resize a PTY session.
PTY resize is HTTP-only — not exposed in the TypeScript or Python SDKs. The SDKs handle resize automatically for interactive sessions.
id
string
required
Sandbox ID
sessionID
string
required
PTY session ID
cols
integer
required
New column count
rows
integer
required
New row count
{}