Stream command events

GET/v1/sessions/{id}/executions/{executionId}/events

Stream persisted stdout, stderr, error, and exit events as newline-delimited JSON. Every line has the ExecutionEvent shape. Reconnect using the last processed sequence in after. Disconnecting does not cancel the process.

Authorization

bearerAuth
AuthorizationBearer <token>

Use the owner-scoped product API key provided by the service operator.

In: header

Path Parameters

id*string

Session ID returned by open or list.

Formatuuid
executionId*string

Execution ID returned when starting a command.

Formatuuid

Query Parameters

after?integer
Range0 <= value <= 2147483647
Default0

Response Body

application/x-ndjson

application/json

Request
curl -X GET "https://assemble-vms-api.fly.dev/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/executions/497f6eca-6276-4993-bfeb-53cbbbba6f08/events" \  -H "Authorization: Bearer ${ASSEMBLE_API_KEY}"
Response
"{\"sequence\":1,\"type\":\"stdout\",\"data\":\"/workspace\\n\"}\n{\"sequence\":2,\"type\":\"exit\",\"state\":\"completed\",\"exitCode\":0}\n"