DocsHTTP APIStream a retained log export

Stream a retained log export

Stream a retained log export. Use GET /workflows/{workflow_id}/jobs/{job_id}/logs/raw in Chronoverse, with authentication, parameters, and response details.

GET
/workflows/{workflow_id}/jobs/{job_id}/logs/raw

The first page is authorized before the success response; each continuation checks current visibility. Only terminal jobs can be exported. A HEAD request performs only the initial checks and returns headers without records. Each line is a JSON record of type log, complete, or error. Accept the export only after exactly one complete record, as the final newline-terminated record, followed by clean EOF. Empty successful exports have only complete. An error record or a truncated response invalidates the entire export. To reconstruct text, write each log record's message_raw followed by a newline, preserving embedded line breaks. Commit the output only after verifying completion and EOF. The dashboard can also assemble JSON and JSONL.

Authentication

cookieSession
apiKey
required

Encrypted session cookie issued after registration or login.

cookie: session

Parameters

workflow_id
path
required

No additional description.

string · uuid
job_id
path
required

No additional description.

string · uuid
stream
query

No additional description.

stringenum: stdout | stderr
q
query

Optional text filter. Meilisearch matches all of the first ten terms it identifies with typo tolerance and ignores later terms.

string

Responses

200

Typed NDJSON in ascending sequence order, without search highlights

application/x-ndjson
Example
{"type":"log","timestamp":"2026-11-26T00:00:00Z","sequence_num":1,"stream":"stdout","event_id":"event-1","message_raw":"hello"}
{"type":"complete"}
Record schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "type",
        "timestamp",
        "sequence_num",
        "stream",
        "event_id",
        "message_raw"
      ],
      "properties": {
        "type": {
          "const": "log"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "sequence_num": {
          "type": "integer",
          "minimum": 0,
          "maximum": 4294967295
        },
        "stream": {
          "type": "string",
          "enum": [
            "stdout",
            "stderr"
          ]
        },
        "event_id": {
          "type": "string"
        },
        "message_raw": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "type"
      ],
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "complete"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "type",
        "message"
      ],
      "properties": {
        "type": {
          "const": "error"
        },
        "message": {
          "type": "string",
          "description": "Safe error message. The export is incomplete."
        }
      }
    }
  ],
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "log": "#/components/schemas/JobLogExportEntry",
      "complete": "#/components/schemas/JobLogExportComplete",
      "error": "#/components/schemas/JobLogExportError"
    }
  }
}
400

Invalid export request or the job has not reached a terminal state

401

Missing or invalid session

403

A downstream service denied access before streaming began

404

Resource not found

408

A downstream RPC was canceled before streaming began and the connection is still open

412

Current workflow or job state does not allow the operation

429

Ingress rate or connection limits were exceeded, or a downstream service reported resource exhaustion

500

An internal error occurred before streaming began

503

A required downstream service was unavailable before streaming began

504

A downstream RPC reported deadline expiry before streaming began