Skip to content

The sandbox's log

GET
/sandboxes/{id}/logs
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.

id
required
string
follow
boolean

Keep the response open and send new lines as they come, while the sandbox runs.

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"
}