Skip to main content
GET
Watch an existing browser run
Submit with async: true, save the run ID, then attach to this endpoint. This lets your application recover results even if the stream disconnects.

Event contract

The existing-run stream’s done contains status only. Fetch the run after done for final data and credit usage. This differs from the submission stream, whose done contains the full batch.

Reconnect and recover

An already-terminal run emits snapshot, then done, then closes. Keepalive lines start with : and are not JSON events. Closing the stream does not cancel the run. The stream has no event-ID replay contract. After a disconnect, fetch a fresh result or reconnect for a new snapshot; do not assume that every transient event will be replayed. Treat EOF without done as an interrupted stream and check status.

Read the stream in code

Send the key in a header, as on every other endpoint, and read the response body as it arrives. The browser’s EventSource cannot set headers, so use fetch or an HTTP client that streams.
The SDKs stream submission responses; use direct HTTP for this existing-run endpoint.

Errors

These statuses arrive before streaming begins. Once headers are sent, handle SSE error frames as failures even with HTTP 200. Each status has an example body in the response examples. See errors and retries.

Authorizations

Authorization
string
header
required

Your pre.dev workspace API key (pdk_...) from Integrations, Built-in tab: https://pre.dev/projects/integrations?tab=built-in

Path Parameters

id
string
required

24-character record ID.

Pattern: ^[a-fA-F0-9]{24}$

Response

SSE stream. Errors after headers arrive as error events, not new HTTP status codes.

The response is of type string.