WebSocket event stream
curl --request GET \
--url https://api.turos.app/v1/stream/ws \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/stream/ws"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/stream/ws', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Stream
WebSocket event stream
Upgrades an active stream subscription to a WebSocket connection. Supply that subscription’s stream_id and authenticate with either a short-lived signed ticket from POST /v1/stream/tickets or the x-api-key header. Concurrent connections are capped by plan and are not separately billable; delivered events are billed in the same delivery-event family as stream polling and are idempotent per subscription and event.
GET
/
v1
/
stream
/
ws
WebSocket event stream
curl --request GET \
--url https://api.turos.app/v1/stream/ws \
--header 'x-api-key: <api-key>'import requests
url = "https://api.turos.app/v1/stream/ws"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.turos.app/v1/stream/ws', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Headers
Query Parameters
Response
WebSocket upgrade successful. Server sends JSON frames such as connected, filing.published, pong, filters_updated, and rate_limited.