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
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt

Use this file to discover all available pages before exploring further.

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
{}