POST

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Path Parameters

desktop_session_id
string
required

Body

application/json

Body of a desktop ticket. purpose is optional and must be watch.

purpose
enum<string>
Available options:
watch
origin
string
viewer
string

Opaque viewer identifier owned by the tenant, distinct from the SFU participant identity.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9._:-]{1,128}$
transport
enum<string>

Request the supported RFB fallback of the existing capture; viewer remains required for screen-live sessions. Omit for the default transport.

Available options:
rfb
ttl_seconds
integer
Required range: 15 <= x <= 120

Response

Success.

A transport-bound credential (D-7). BMA WebSocket tickets are single-use; LiveKit credentials support SDK reconnect with admission rechecked. purpose names what it opens (watch, connect; control is reserved).

ticket
string
required

Opaque credential, never logged. BMA-owned WebSocket tickets are single-use. LiveKit access tokens support SDK reconnect and refresh; each connection rechecks the current session, viewer and control lease.

ws_url
string
required

WebSocket URL without the ticket.

type
any
required

Always ticket.

purpose
enum<string>
required
Available options:
watch,
connect,
control
id
string
expires_at
string<date-time>
subprotocol
string
permissions
string[]
machine_id
string
desktop_session_id
string
viewer
string

Opaque viewer identifier owned by the tenant, distinct from the SFU participant identity.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9._:-]{1,128}$
transport
enum<string>
Available options:
livekit,
rfb
room
string
publisher_identity
string
viewer_identity
string

The platform-derived SFU participant identity of this ticket, distinct from viewer.

input_identity
string

Response-only trusted RFB input identity derived by the platform from the admitted capture and viewer. It must match an RFB control grant's holder and cannot authenticate as an SFU participant.

control_available
boolean

Whether the screen-live machine supports a separately acquired input lease.