TCP Proxy
Create TCP Proxy Session
Create a TCP proxy session and return a short-lived token for WebSocket connection. This is the first step in establishing a TCP proxy connection. The returned token should be used to connect to the WebSocket endpoint /v1/tcp-proxy/{token}.
Two-Phase Authorization Flow:
- Call this endpoint with Bearer token authentication to create a TCP tunnel
- Server establishes connection to target via agent and returns a session token
- Connect to /v1/tcp-proxy/{token} WebSocket endpoint (no auth header needed)
This flow is designed to work with browser WebSocket API which cannot send custom Authorization headers.
Required Permissions:
- System access right: SYSTEM_ACCESS_SETUP_TCP_PROXY
- Object access right: OBJECT_ACCESS_CONTROL on the target or proxy object
post/v1/tcp-proxy
Request body
Response
TCP proxy session created successfully.