Skip to main content
GET
/
sandboxes
/
{sandboxID}
/
logs
cURL
curl --request GET \
  --url https://api.e2b.app/sandboxes/{sandboxID}/logs \
  --header 'X-API-Key: <api-key>'
{
  "logs": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "line": "<string>"
    }
  ],
  "logEntries": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "message": "<string>",
      "level": "debug",
      "fields": {}
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Query Parameters

start
integer<int64>

Starting timestamp of the logs that should be returned in milliseconds

Required range: x >= 0
limit
integer<int32>
default:1000

Maximum number of logs that should be returned

Required range: x >= 0

Response

Successfully returned the sandbox logs

logs
object[]
required

Logs of the sandbox

logEntries
object[]
required

Structured logs of the sandbox