---
title: "Get workflow trace log data (latest run)"
method: GET
path: "/workflow/{id}/trace-log"
---

# Get workflow trace log data (latest run)

`GET /workflow/{id}/trace-log`

Returns trace data for the latest run of the given workflow. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path. To pin a specific run, use `/workflow/{id}/runs/{rid}/trace-log`.

## Path parameters

- `id` string, required

## Response `200`

The trace log response

- union
  - TraceLogRemoteResponse
    - `source` 'remote', required — Indicates trace was fetched from remote storage
    - `runId` string, required — The specific run id this trace belongs to
    - `data` TraceData, required — Trace data containing workflow execution details
      - `workflowId` string — The workflow execution ID
      - `input` object — The workflow input
      - `output` object — The workflow output
      - `steps` object[] — The workflow execution steps
  - TraceLogLocalResponse
    - `source` 'local', required — Indicates trace is available locally
    - `runId` string, required — The specific run id this trace belongs to
    - `localPath` string, required — Absolute path to local trace file

## Other responses

- `404` — Workflow execution, workflow type, or catalog not found
- `424` — Workflow dependency failed (e.g. workflow not in a terminal state, or workflow type is unsupported by the selected catalog)
- `500` — Internal server error (e.g. Temporal connection failure)

---

[API](https://skmtc.net/growthxai/apis/output-ai-api.md) · [All operations](https://skmtc.net/growthxai/apis/output-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/growthxai/output-ai-api/versions/09a49e598435/schema)
