---
title: "Poll execution logs"
method: GET
path: "/local-sandbox/{local_sandbox_id}/execution-logs"
tags: ["local-sandbox"]
---

# Poll execution logs

`GET /local-sandbox/{local_sandbox_id}/execution-logs`

Returns execution status and new log content since the provided byte cursor. Call repeatedly with the returned cursor to stream logs.

## Path parameters

- `local_sandbox_id` string, required — The local sandbox identifier

## Query parameters

- `execution_name` string, required — Name of the execution to get logs for
- `cursor` integer — Byte offset to start reading from

## Response `200`

Successful Response

- ExecutionLogsResponse
  - `status` string, required — Current status: pending | running | completed | failed
  - `logs` string — New log content since the provided cursor
  - `cursor` integer — Byte offset to pass as cursor on next poll

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) · [All operations](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/klavis-ai/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f/schema)
