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

Response

Success.

id
string
required

Desktop session ID (dsn_...).

Pattern: ^dsn_[a-z2-7]{26}$
type
string
required

Always desktop_session_closed.

Allowed value: "desktop_session_closed"
state
enum<string>
required
Available options:
closing,
closed
closed
boolean
required

True only after the capture stop is confirmed or its local lease expired.