---
title: "Get Devbox logs."
method: GET
path: "/v1/devboxes/{id}/logs"
tags: ["Devbox", "Devbox-ObservabilityTools"]
---

# Get Devbox logs.

`GET /v1/devboxes/{id}/logs`

Get all logs from a running or completed Devbox.

## Path parameters

- `id` string, required

## Query parameters

- `execution_id` string
- `shell_name` string

## Response `200`

OK

- DevboxLogsListView
  - `logs` DevboxLog[], required — List of logs for the given devbox.
    - `cmd_id` string, nullable — Identifier of the associated command the log is sourced from.
    - `level` string, required — Log line severity level.
    - `timestamp_ms` integer, required — Time of log (Unix timestamp milliseconds).
    - `shell_name` string, nullable — The Shell name the cmd executed in.
    - `cmd` string, nullable — The Command Executed
    - `message` string, nullable — Log line message.
    - `exit_code` integer, nullable — The Exit Code of the command
    - `source` 'setup_commands' | 'entrypoint' | 'exec' | 'files' | 'stats' | 'kmsg', required

## Other responses

- `404` — Devbox not found.

## Changes

- **2026-04-09** `a1c7e69cbbf7` — 1 warning
  - added the new `kmsg` enum value to the `logs/items/source` response property for the response status `200`

[Change history](https://skmtc.dev/runloopai/apis/runloop-api/changes/v1/devboxes/:id/logs/get.md)

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/7715c368e070/schema)
