---
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.

---

[API](https://skmtc.net/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.net/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/runloopai/runloop-api/versions/ef553a04de89/schema)
