Skip to main content
GET
/
v1
/
runs
/
{runId}
/
stream
Stream Run (SSE)
curl --request GET \
  --url https://app.uselamina.ai/v1/runs/{runId}/stream \
  --header 'x-api-key: <api-key>'
"event: progress\ndata: {\"runId\":\"fc32ae7d-...\",\"status\":\"running\",\"outputs\":[...]}\n\nevent: ping\ndata: 1713456789000\n\nevent: complete\ndata: {\"runId\":\"fc32ae7d-...\",\"status\":\"completed\",\"outputs\":[{\"id\":\"...\",\"type\":\"image\",\"value\":\"https://...\",\"status\":\"completed\"}]}\n"
Opens a Server-Sent Events (SSE) stream for real-time execution progress. Use this instead of polling when you need instant updates — for example, to drive a progress bar, stream partial outputs to a UI, or feed status changes into an agent loop. The connection stays open until the execution reaches completed or failed. Each SSE event contains the current execution state, including per-node output status. The final event carries the full completed (or failed) execution payload, after which the server closes the stream.

Authorizations

x-api-key
string
header
required

Workspace API key. Prefix: lma_. Example: lma_abc123...

Path Parameters

runId
string<uuid>
required

The run ID returned from the Run App or Content Create endpoint

Response

SSE event stream. Each event is a data: line followed by two newlines.

The response is of type string.