---
title: "Sandbox logs (v2)"
method: GET
path: "/v2/sandboxes/{sandboxID}/logs"
tags: ["sandboxes"]
---

# Sandbox logs (v2)

`GET /v2/sandboxes/{sandboxID}/logs`

Get sandbox logs

## Path parameters

- `sandboxID` string, required

## Query parameters

- `cursor` integer
- `limit` integer
- `direction` 'forward' | 'backward' — Direction of the logs that should be returned
- `level` 'debug' | 'info' | 'warn' | 'error' — State of the sandbox
- `search` string

## Response `200`

Successfully returned the sandbox logs

- SandboxLogsV2Response
  - `logs` SandboxLogEntry[], required — Sandbox logs structured
    - `timestamp` string, date-time, required — Timestamp of the log entry
    - `message` string, required — Log message content
    - `level` 'debug' | 'info' | 'warn' | 'error', required — State of the sandbox
    - `fields` object, required

## Other responses

- `401` — Authentication error
- `404` — Not found
- `500` — Server error

## Changes

> 53 revisions in range; 5 could not be searched.

- **2026-07-24** `93ed246a4c10` — 2 info
  - the endpoint scheme security `AdminApiKeyAuth AND AdminTeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was removed from the API
- **2026-05-27** `e13ef89d456c` — 1 info
  - the endpoint scheme security `AuthProviderBearerAuth AND AuthProviderTeamAuth` was added to the API
- **2026-03-26** `324629e18dc8` — 2 info
  - added the new optional `query` request parameter `level`
  - added the new optional `query` request parameter `search`
- **2026-02-24** `0bcb69c4169b` — 1 info
  - endpoint added
- **2023-11-15** `897ba2f1c7b6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/v2/sandboxes/:sandboxID/logs/get.md)

---

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