Subscribe to workspace realtime events (SSE)
GET
/api/workspaces/{workspaceId}/realtime
const url = 'http://localhost:8080/api/workspaces/example/realtime';const options = {method: 'GET', headers: {cookie: 'auth_session=<auth_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/workspaces/example/realtime \ --cookie auth_session=<auth_session>Server-Sent Events stream of workspace realtime events. Session auth only (EventSource cannot send API-key headers).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Query Parameters
Section titled “Query Parameters”clientId
string
Responses
Section titled “Responses”SSE event stream.
Media typetext/event-stream
string
Invalid request
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}Internal server error
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}