Skip to main content
GET
/
v1
/
monitor
/
ws
Upgrade to the monitor WebSocket stream
import requests

url = "https://api.13-215-85-171.sslip.io/v1/monitor/ws"

headers = {
    "Sec-WebSocket-Protocol": "<sec-websocket-protocol>",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
{
  "error": "Missing or invalid bearer credential",
  "code": "unauthorized",
  "request_id": "req_123"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Headers

Sec-WebSocket-Protocol
string
required

Monitor WebSocket API-key subprotocol value.

Response

Switching Protocols (WebSocket upgrade)