Get sandbox 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": {} } ] }
Starting timestamp of the logs that should be returned in milliseconds
x >= 0
Maximum number of logs that should be returned
Successfully returned the sandbox logs
Logs of the sandbox
Show child attributes
Structured logs of the sandbox
Was this page helpful?