VNC
POST/workstations/:workstation_id/vnc
Connect to a Workstation's desktop using VNC (Virtual Network Computing). This endpoint returns a VNC URL that can be used to establish a remote desktop connection using a native VNC client.
Native VNC Client (TigerVNC)
TigerVNC is a high-performance, platform-neutral implementation of VNC that works on Windows, macOS, and Linux.
Installation
Windows:
- Download TigerVNC from the official website: https://sourceforge.net/projects/tigervnc/files/stable/
- Run the installer (.exe file)
- The
vncviewer
application will be available in the Start menu
macOS:
brew install tiger-vnc
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install tigervnc-viewer
Fedora/RHEL:
sudo dnf install tigervnc
Connecting with TigerVNC
- Get the VNC connection URL:
curl -X POST https://api.agentstation.ai/v1/workstations/HvcqZjmeoPtP/vnc \
-H "Authorization: Bearer <your_token>"
- Connect using the command line:
# Using command line
vncviewer a2mdkyweatct.vnc.v1.connect.agentstation.ai:5900
Or using the GUI:
- Open TigerVNC Viewer
- Enter the VNC URL in the "VNC Server" field
- Click "Connect"
- The remote desktop should appear in a new window
Notes
- The VNC connection will be automatically closed after the Workstation is released
- The URL contains a secure random token that authenticates the connection
- Default VNC settings:
- Resolution: 1280x720
- Color depth: 24-bit
- Framerate: 30 fps
- Encoding: Tight with JPEG compression
Request
Responses
- 200
- 400
- 401
- 402
- 422
- 429
- 500
- 503
Remote connection successful
Invalid Request Format - check API documentation for proper syntax.
Unauthorized - missing or invalid API key.
Payment Required - you have run out of trial credits or your payment method has expired. Please add payment details to your account.
Unprocessable Entity - cannot find requested asset associated with your API key.
Too Many Requests - you have exceeded the rate limit for your account. Please wait before making additional requests.
Internal Server Error - please retry your request.
Service Unavailable - our servers have dropped the request due to high load - please retry.