Skip to main content
Open a terminal

Authorizations

Authorization
string
header
required

BoxRouter API key; never an upstream provider key.

Headers

Idempotency-Key
string

Optional for this operation. Preserve the same stable identifier when retrying an uncertain response; never reuse it for new work. If omitted where allowed, Cloud generates a request-scoped key that cannot reconcile a later retry. Do not include credentials or payloads. Stable identifier for one logical mutation.

Required string length: 1 - 128

Path Parameters

sandbox_id
string
required

Workspace-owned BoxRouter sandbox ID, not an upstream ID.

Minimum string length: 1
Pattern: ^[^\u0000]*$

Body

application/json
columns
integer
default:80
Required range: 1 <= x <= 1000
rows
integer
default:24
Required range: 1 <= x <= 1000
timeout_seconds
integer
default:600

Latest end of the shell. The API worker stays with the terminal for this long.

Required range: 1 <= x <= 3600

Response

Terminal handle created.

id
string
required
sandbox_id
string
required
state
string
required

Known states are running, exited and unknown.

exit_code
integer | null
required

Present only after a confirmed shell exit; 129 follows a hang-up. Null is not success.