A node's WebSocket to the deck (the node protocol, not for frontends)
GET
/api/v1/nodes/ws
const url = 'https://deck.example.com/api/v1/nodes/ws';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://deck.example.com/api/v1/nodes/ws \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Websocket upgrade
Headers
Section titled “Headers”connection
string
Example
upgradesec-websocket-key
string
sec-websocket-protocol
string
upgrade
string
Example
websocketdefault
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}