Stream command events
GET
/v1/sessions/{id}/executions/{executionId}/eventsStream 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.
Format
uuidexecutionId*string
Execution ID returned when starting a command.
Format
uuidQuery Parameters
after?integer
Range
0 <= value <= 2147483647Default
0Response 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"