---
title: "GET /v1/sandboxes/logs"
method: GET
path: "/v1/sandboxes/logs"
---

# GET /v1/sandboxes/logs

`GET /v1/sandboxes/logs`

## Query parameters

- `sandbox_id` string — Filter to specific sandbox ID
- `from` string, date-time — Start time (ISO 8601). Default: 1 hour ago
- `to` string, date-time — End time (ISO 8601). Default: now
- `limit` integer — Maximum number of logs to return (1-1000). Default: 100

## Response `200`

Execution logs

- LogsResponse
  - `logs` LogEntry[], required — Execution logs
    - `timestamp` string, required — Execution timestamp (ISO 8601)
    - `request_id` string, required — Request ID for correlation
    - `sandbox_id` string, required — Sandbox ID where command was executed
    - `execution_id` string, required — Unique execution ID
    - `command` string, required — Command that was executed
    - `working_dir` string — Working directory
    - `exit_code` integer, required — Exit code of the command
    - `status` 'completed' | 'timeout' | 'error', required — Execution status
    - `execution_time_ms` integer, required — Execution duration in milliseconds
    - `stdout` string, required — Standard output (may be truncated)
    - `stderr` string, required — Standard error (may be truncated)
    - `stdout_truncated` boolean, required — Whether stdout was truncated
    - `stderr_truncated` boolean, required — Whether stderr was truncated
  - `total` integer, required — Total number of logs returned

## Other responses

- `401` — Unauthorized - API key required
- `500` — Internal server error

## Changes

- **2026-01-26** `260daed67193` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/avm-codes/apis/avm-sandbox-platform-api/changes/v1/sandboxes/logs/get.md)

---

[API](https://skmtc.dev/avm-codes/apis/avm-sandbox-platform-api.md) · [All operations](https://skmtc.dev/avm-codes/apis/avm-sandbox-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/avm-codes/avm-sandbox-platform-api/revisions/260daed67193/schema)
