The sandbox's log
GET
/sandboxes/{id}/logs
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/logs?follow=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/logs?follow=false' \ --header 'Authorization: Bearer <token>'The output of the sandbox’s main program (for agent sandboxes, the agent service) and gVisor’s
messages, as plain text: the last 64 KB, then, with follow, new lines as they come. Reading the
log never wakes the sandbox.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”follow
boolean
Keep the response open and send new lines as they come, while the sandbox runs.
Responses
Section titled “Responses”The log
Media typetext/plain
string
The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The sandbox isn’t running, or its server is unreachable right now
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}