Skip to content
Wardcase Docs

WebSocket terminal (dashboard). Upgrade required.

GET
/v1/sandboxes/{id}/terminal

WebSocket upgrade authenticated by the dashboard session cookie (__Host-vv_session in production) (API keys are not accepted). The API checks that the Origin header is exactly https://app.wardcase.com and refuses the upgrade otherwise. Client frames: { “t”: “input”, “data”: "" } and { “t”: “resize”, “rows”: 40, “cols”: 120 }. Server frames: { “t”: “output”, “data”: "" } and { “t”: “exit”, “code”: 0 }. Close codes: 1000 normal, 4004 sandbox not found, 4009 sandbox not running, 4010 host unreachable, 4011 idle or hard timeout destroyed the sandbox.

id
required
string
/^sbx_[A-Za-z0-9]+$/

Sandbox ids are lowercase: sbx_ followed by 16 characters from [a-z0-9]. Hostname labels derived from them are therefore safe to compare after lowercasing.

Switching protocols

Not found

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string

Upgrade required; this route only accepts WebSocket upgrades