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

## Request

- Base URL: `https://api.klavis.ai`
- URL: `https://api.klavis.ai/local-sandbox/{local_sandbox_id}/execution-logs`
- Auth: HTTP bearer

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

## Changes

- **2026-03-16** `160ac57c4573`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/changes/local-sandbox/:local_sandbox_id/execution-logs/get.md)

---

[API](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) - [All operations](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f?raw)
