API referenceWorkflows
Follow a workflow
GET
Needs a key withworkflows:read
Streams a workflow's changes as server-sent events: a result event whenever a node's result changes ({ type, nodeId, result }, the result as GET /workflows/{workflowId} shows it) and a run event when a run ends. Nothing is replayed: read the workflow when you connect and again whenever you reconnect. The stream ends after 15 minutes; reconnect to keep following.
Requires scope workflows:read.
apiKeyheader
x-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
workflowId*stringLength
1 <= length <= 128An event stream of the workflow's changes.
text/event-stream- response
event*unknowndata*|id?stringretry?numbercurl -X GET 'https://api.remagica.com/api/v1/workflows/2c9a7f10-6b3e-4d21-9f8a-5e7c1b0d4a36/events'Example Response
{ "event": "message", "data": { "nodeId": "7b79be4b-5b3d-4f60-8e2a-1d9c6b4f7e05", "result": { "createdAt": "string", "credits": 12, "error": null, "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "outputs": {}, "provider": "string", "runId": "599e5591-5b3d-4f60-8e2a-1d9c6b4f7e05", "settings": {}, "status": "pending", "stop": "kept" }, "type": "result" }, "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "retry": 1}