Workflow logs request

Request of logs workflow

Endpoint

GET /api/workflow/logs/

Auth

Authorization: Bearer ${token}

Query Parameters

KeyDefault
count1
identity
step0
stdoutfalse
stderrfalse

step narrows the response to a single 1-based step; every step is returned when it is 0. When neither stdout nor stderr is set, both streams are returned.

count is the tail depth per stream, clamped to 1999: each entity stream in range contributes its own last count lines, so a 3-step workflow with both streams returns up to 6 × count entities.

Response

Json
[
    {
        "kind": "status",
        "payload": {
            "code": 0,
            "message": ""
        }
    },
    {
        "kind": "entity",
        "payload": {
            "output": "",
            "prefix": ""
        }
    }
]

Notes

  • Workflow Permission Required
  • prefix names the source file — step-{index}.out for stdout, step-{index}.err for stderr — and output carries the raw line including its trailing newline
  • Entities arrive grouped by stream in step order, so a step's stdout tail precedes its stderr tail