Perform a computer action
POST
/v1/sessions/{id}/computerClick, type, press keys, scroll, drag, or capture the session desktop. Requires a running session; the desktop starts on first use. Actions run alongside commands and SSH without taking the session lease.
Authorization
bearerAuth AuthorizationBearer <token>
Use the owner-scoped product API key provided by the service operator.
In: header
Path Parameters
id*string
Session ID returned by open or list.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
One desktop action. Keys use canonical names such as enter, escape, tab, letters, digits, and function keys.
One desktop action. Keys use canonical names such as enter, escape, tab, letters, digits, and function keys.
Response Body
application/json
application/json
Request
curl -X POST "https://assemble-vms-api.fly.dev/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/computer" \ -H "Authorization: Bearer ${ASSEMBLE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "type": "screenshot" }'Response
{ "action": "screenshot", "format": "png", "data": "string", "width": 0, "height": 0}