POST
Mint a viewer token

Authorizations

X-API-Key
string
header
required

An Anona Compute API key (e2b_ followed by lowercase hex).

Path Parameters

sandboxID
string
required

Body

application/json
scope
enum<string>
default:view

view watches; control also sends input (terminal keystrokes, desktop mouse and keyboard).

Available options:
view,
control
channels
enum<string>[]

What the token opens. The first channel picks the embed view (pty opens the terminal view).

Available options:
dom,
pty,
desktop,
thumb,
ssh
ttlSeconds
integer
default:600
Required range: 30 <= x <= 600

Response

The token and its embed URL.

token
string
required

Compact JWS (EdDSA, typ anona-view+jwt).

expiresAt
string<date-time>
required
embedUrl
string<uri>
required

The live-view page for an iframe, with the token in the fragment.