Skip to main content
GET
/
v2
/
sandboxes
/
{sandboxID}
/
logs
Get sandbox logs (v2)
curl --request GET \
  --url https://api.e2b.app/v2/sandboxes/{sandboxID}/logs \
  --header 'X-API-Key: <api-key>'
{
  "logs": []
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Query Parameters

cursor
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: 0 <= x <= 1000
direction
enum<string>

Direction of the logs that should be returned

Available options:
forward,
backward
level
string

Minimum log level to return. Logs below this level are excluded Severity level for log entries (e.g. info, warn, error)

Case-sensitive substring match on log message content

Maximum string length: 256

Response

Successfully returned the sandbox logs

logs
object[]
required

Sandbox logs structured