Connect the browser extension
Integrations
Connect the browser extension
Opens the WebSocket the HQ browser extension dials out to in order to receive remote
browser-control commands and stream back results. The extension authenticates by
passing its personal access token in the Sec-WebSocket-Protocol header as
hq-pat.<token>, and the request is answered with a 101 protocol-upgrade rather than
a normal JSON response. There is one live connection per user; the per-frame message
protocol is not described by the API schema.
GET
Connect the browser extension
WebSocket endpoint
This is not a plain HTTPGET — it’s a WebSocket upgrade. It’s the channel the HQ browser extension dials out on so a remote agent can drive the user’s local browser; you don’t normally call it yourself.
- Subprotocol:
hq-agent-browser.v1. - Auth: a browser can’t set an
Authorizationheader on a WebSocket, so the PAT rides inSec-WebSocket-Protocolashq-pat.<token>, alongside the subprotocol. - Heartbeat: ~20 s application-level ping (also keeps idle proxies open).
- Presence: one live connection per user. The server relays
computer.*commands down this socket and awaits each result.
Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Response
101
WebSocket upgrade. The HQ extension dials out here (PAT in Sec-WebSocket-Protocol as hq-pat.<token>) to receive computer.* commands. Frames are the WebDriver-BiDi-shaped local_browser_protocol (see docs/local-browser-control.md); OpenAPI cannot describe the per-frame protocol.