---
title: "Get Trace Env Logs"
method: GET
path: "/v2/trace/{trace_id}/env-logs"
tags: ["traces"]
---

# Get Trace Env Logs

`GET /v2/trace/{trace_id}/env-logs`

Environment logs — the customer container's stdout/stderr.

Fetched from the daemon's S3 debug bundle.

## Path parameters

- `trace_id` string, uuid, required

## Response `200`

Successful Response

- EnvLogsResponse
  - `trace_id` string, uuid, required
  - `logs` EnvLogEntry[], required
    - `stream` string, required
    - `log` string, required
    - `time` string, nullable
  - `count` integer, required
  - `has_more` boolean
  - `last_timestamp` integer, nullable
  - `still_running` boolean

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hud/hud-platform/revisions/f4d79d769332/schema)
