Skip to content

Read durable sandbox logs

GET/sandboxes/{id}/logs

Durable per-sandbox logs (service output + exec activity) that survive the sandbox. Returns 501 when the daemon has no log store configured.

path parameters
object
idstringrequired

Sandbox ID, e.g. sbx_ab12cd34.

query parameters
object
sinceintegerint64

Byte offset to read from; -1 (default) tails the recent log.

sourcestring

Filter by source: service | exec | all (default all).

Responses
200 OKOK
LogsResponse
next_offsetintegerint64
recordsarray | null
items
LogRecord
sourcestring
streamstring
textstring
time_msintegerint64
400 Bad requestBad Request
ErrorResponse
errorstring
404 Not foundNot Found
ErrorResponse
errorstring
501 Not Implemented
ErrorResponse
errorstring
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
GET/sandboxes/{id}/logs
cURL
curl '/sandboxes/{id}/logs?since=&source='
Response
200 OK
{
  "next_offset": 0,
  "records": [
    {
      "source": "string",
      "stream": "string",
      "text": "string",
      "time_ms": 0
    }
  ]
}
Was this page helpful?