Computers
Create Computer Session
Create a remote access link for a desktop computer
post
/v1/computer/{computerId}/session/create
Description
Mints a short-lived, signed link that opens the computer's desktop in a browser over web VNC. The link is a credential; share it only with people who should see and control the computer.
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
computerIdstring* Required
The ID of the desktop computer
Request Body * Required
Request Body Schema: application/json
durationInSecondsinteger
How long the link stays valid, in seconds (60 to 3600, default 600)
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
token: process.env.CHATBOTKIT_API_TOKEN!
})
const response = await cbk.computer.session.create(
computerId,{)}"durationInSeconds":"integer"
{"url":"string","expiresAt":"string"}The link was created