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

# Get workflow trace log data

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

Returns trace data for a completed workflow. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path.

## Path parameters

- `id` string, required

## Response `200`

The trace log response

- union
  - TraceLogRemoteResponse
    - `source` 'remote', required — Indicates trace was fetched from remote storage
    - `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
    - `localPath` string, required — Absolute path to local trace file

## Other responses

- `404` — Workflow execution, workflow type, or catalog not found
- `424` — Workflow not in a terminal state (still running)
- `500` — Internal server error (e.g. Temporal connection failure)

## Changes

- **2026-03-13** `0f0e49049ef1` — 2 breaking
  - removed the required property `oneOf[#/components/schemas/TraceLogLocalResponse]/runId` from the response with the `200` status
  - removed the required property `oneOf[#/components/schemas/TraceLogRemoteResponse]/runId` from the response with the `200` status

[Change history](https://skmtc.dev/growthxai/apis/output-ai-api/changes/workflow/:id/trace-log/get.md)

---

[API](https://skmtc.dev/growthxai/apis/output-ai-api.md) · [All operations](https://skmtc.dev/growthxai/apis/output-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/growthxai/output-ai-api/revisions/cf3be024b66f/schema)
