Open the event stream
Opens a server-sent event stream of confirmed events, test events and open incidents for the key's Company and clients.
GET https://app.upfour.io/v1/runner/stream
Parameters
| Field | Type | Description |
|---|---|---|
suspected optional | string one of1 | query parameter · 1 asks for monitor.suspected and monitor.suspicion_cleared, the unconfirmed early warnings. They arrive only while the machine's suspicion setting is on as well, carry unconfirmed: true and are never replayed. |
Last-Event-ID optional | string | header parameter · Resume after this event ID within the replay window. |
X-Up4-Runner-Host optional | string max length 255 | header parameter · Host name of the machine, shown under Connected machines. Display only. |
X-Up4-Runner-ID required | uuid | header parameter · Stable UUID of the runner. |
X-Up4-Runner-Name required | string length 1–64 | header parameter · Printable runner name. |
Returns
A successful request returns 200 with text/event-stream.
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or fails validation. |
| 403 | insufficient_scope | The API key lacks the scope this operation needs. When: Only for API keys, when the key's scopes do not include the one the operation requires; details.required_scope names it. Fix: Create a key with the needed scope; a missing scope never resolves by retrying. |
| 403 | permission_denied | The credentials do not permit this action. |
| 429 | runner_connection_limit | The Company already has as many open runner streams as one API instance accepts. When: GET /v1/runner/stream when the Company's open runner connections on the answering instance reach the limit; Retry-After carries the wait in seconds. Fix: Close runners you no longer use, then reconnect after Retry-After with jitter. |
| 503 | service_unavailable | The service or a required dependency is temporarily unavailable. |
| 403 | documented response | The key lacks runner.stream.read or has lost access to its clients. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.